Using GreaseMonkey 1.3 on Firefox 15.0.1. I was wondering how @grant works for script that you include through @require.
Suppose script A: @require B @grant none And script B: no @grant line (yet), but using GM_ methods. Will script A's "@grant none" override the more liberal (or missing) "@grant" settings of script B. Or does script B get its own permissions? I think the latter is the case, or else my below mentioned script wouldn't have worked at all anymore. But I'd like to be sure. I am asking this for my own update script - I know GM now has support for updating, but mine works just fine also; http://userscripts.org/scripts/review/75442 I didn't have to touch it for over 2 years. But because of the adding of the @grant config option, I'll soon have to make changes to this script or it will forever stop working. It might already be too late, because the script will not update by itself. The script that includes it will have to have had an update, before using @grant is made required, or it will never auto-update again. I have of course no idea who else is using my update script, or how often it is still used (userscripts.org doesn't show an activity graph anymore unfortunately). Now on another note. If script B gets its own permissions. Is that wanted behavior even. Does it perhaps leave a loophole in some way? Script A seems to be all secure. But the included scripts could be changed and start doing all kinds of nasty stuff (which up to this change they could always have of course). Also, is it just me, or doesn't GM_registerMenuCommand work anymore (again)? With the script below the submenu stays disabled. // ==UserScript== // @name menu test // @namespace armeagle.nl // @include * // @version 1 // ==/UserScript== function blah() { alert("it works!"); } GM_registerMenuCommand("Stuff", blah); Thank you for all your hard work! ArmEagle -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
