This is a super simple HTML file that can be used to sign a message without connecting Metamask to an external website.
The reason why this method is preferable is that messages can be signed using the Metamask extension without exporting the private key outside of the wallet.
See the GitHub Pages site for using; https://truthdeal.github.io/super-simple-sign-message/