This script encrypts your Discord token so that viruses and trojans cannot simply copy your localStorage file to get your token.
Set Tampermonkey Settings > Experimental > Inject Mode to Instant to make the script work consistently.
For best results, enable 2FA and use a different encryption password than your normal Discord password. I recommend using a password you don't use anywhere else since the password is visible when you type it. (This is a limitation with prompt being the only way to synchronously request an input and it having no option to obscure the input.)