Hacker News new | ask | show | jobs
by t0astbread 2248 days ago
On the user's side: Treat userscripts like stuff you paste in the browser console.

In terms of actual tech: GreaseMonkey (and probably also Tamper-/ViolentMonkey) does some sort or isolation between the userscript and the page so that the page can't hijack the userscript. More on that here: https://wiki.greasespot.net/UnsafeWindow