Skip to content

Order of user script commands reversed? #1347

Closed
arantius opened this Issue Apr 22, 2011 · 1 comment

1 participant

@arantius
Collaborator

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

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

I'm almost positive that at some point recently, the behavior of
GM_registerMenuCommand was changed so that the menu items get added in
reverse order from the older way. Now if you call
GM_registerMenuCommand, it adds the item at the TOP of the user menu.
Previously it added it to the bottom.

@arantius
Collaborator

https://gist.github.com/945148

Confirmed working 0.9.1, broken 0.9.2.

@arantius arantius added a commit that closed this issue Apr 27, 2011
@arantius arantius Reverse menu command order.
Since .withAllMenuCommandsForWindowId() gives us the items in reverse order (in case we remove them), add each item as we get it to the top instead.

Fixes #1347
d58e50c
@arantius arantius closed this in d58e50c Apr 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.