
My fear of getting these messages deleted overshadowed my fear of having my old discord messages stay there forever.

I know that running scripts could be dangerous and that it would pose a threat. I don't know much about browser extensions or code. I wanted to delete all my discord messages and ended up using a 3rd party tool to get the job done. That's why I went back to Greasemonkey after using Violentmonkey for a while.For some context: I created a new windows profile and installed tampermonkey and a following script to that browser. In Violentmonkey, besides exportFunction() or cloneInto() you also need to use unsafeWindow.wrappedJSObjectinstead of just unsafeWindow.Greasemonkey managed to bypass that and it works as expected, you just need to use exportFunction() or cloneInto().FireMonkey can't export objects (including functions) to the page.Tampermonkey removes CSP header, loosening the security.Although VM and TM are compatible with GM.* functions, they don't work the same way.įirefox has an open bug that prevents script injection in pages with CSP. FireMonkey also handles it well if you use GM.* functions instead of GM_*. GM doesn't have this issue, it can handle multiple storage requests at the same time. I'm used to open Reddit's main page, /r/popular and /r/all at the same time in new tabs, but that way the script doesn't work as expected when using Violentmonkey or Tampermonkey due to a race condition, so it's common for seen posts to not be hidden. For example, I have a script to hide seen posts in Reddit so that I don't waste time searching for unseen posts among others already seen.

GM's storage access ( GM.Value) is the safest. That being said, it seems to me that GM has the most optimized code. For me, the worst part is the editor, I hate the chosen options for CodeMirror and you cannot change them (unlike in Violentmonkey). I disliked GM's UI at first, but I got used to it.
