Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Script Commands menu breaks when passing a non-function as the second argument #1346

Closed
arantius opened this issue Apr 22, 2011 · 0 comments
Milestone

Comments

@arantius
Copy link
Collaborator

http://groups.google.com/group/greasemonkey-users/t/b4a04ba563b9ad0

On 04/21/11 20:33, jep wrote:

I found that I ran into this problem when I had calls to:

GM_registerMenuCommand(null);

I had used this for spacers. But at some point, a new version of GM
broke on those and created that same weird little menu. I find that
now I have to use:

GM_registerMenuCommand('', function(){});

Looking at your source code for the OKC Clone Profile script, it
appears that this is probably what's doing it:

GM_registerMenuCommand("----------cs----------", "");

If I put that as the last GM_registerMenuCommand after a stack of
valid ones, it fubars the whole menu.

On Apr 21, 5:10 pm, nomonkeynodealsundryreas...@gmail.com wrote:

http://i.imgur.com/o5GpY.jpg

That's what I get instead of the User Script Commands menu. All three
of the scripts shown in that list create menus which have been working
and suddenly stopped, I think after the latest update. (All available
on userscripts.org)

In the error console I'm getting:http://i.imgur.com/0pqVg.jpg

This occurs exactly when I click the little arrow next to the GM icon.

Firefox 4, GM .92

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant