[Greasemonkey] GM_registerMenuCommand
Ryan Barrett
greasemonkey at ryanb.org
Sat May 21 18:39:35 EDT 2005
On 5/21/05, Andrew Hayward <greasemonkey at mooncalf.me.uk> wrote:
> Don't know if this has been discussed before, but I was wondering if
> there was a way to access menu items that are created with
> GM_registerMenuCommand - so the label can be changed, for example.
hey andrew. if greasemonkey can access firefox's preferences database, ie
what you see when you type about:config in the location box, that might be
an alternate way to accomplish this.
i'm not sure if user scripts have the permissions to access the prefs db;
if not, they might after they're compiled with adrian holovaty's compiler.
still, this doesn't really allow for a decent UI. you could provide
keystrokes to turn the options on and off, but the current value wouldn't
be visible to the user.
...so, maybe this email was just a long-winded way of convincing myself
that jeremy is right, and we need GM_unregisterMenuCommand after all. :P
-Ryan
--
http://ryan.barrett.name/
More information about the Greasemonkey
mailing list