Ever since the new Greasemonkey 1.0 was released a few days ago, every site that has jQuery and where I use jQuery in my Greasemonkey script do not run my script properly. The jQuery I have in my GS script (using the @require
metadata) conflicts with the page's jQuery. This is due to the new @grant
code.
I've read the documentation but still don't know how to run GS scripts in a sandbox again; the only options seem to be to either grant access to a GS API or to grant it to none and run the script without any security limitations, which doesn't work at all for me when I've designed my dozens of GS scripts to run WITH security limitations and like it that way.
@grant
directive? Doesn't that only work for the Greasemonkey API? How would I get that to make@require <jQuery>
work within a sandbox? – Lenee@grant GM_getValue
, that should do the trick. Even if you don't actually callGM_getValue()
, the@grant
directive has the side effect of restoring the sandbox; so@require
should go back to working the way it should. – Vaporizer