#277 ✓invalid
Scriptish

submenus for GM_registerMenuCommand

Reported by Scriptish | September 18th, 2011 @ 09:53 PM

Something I've wished for for years in GM is to be able to have submenus. The user script menu gets really cluttered when you have multiple scripts going on the same page that each have menu items. Plus, it's nice to have submenus sometimes for your own scripts.

Not sure exactly how the params would work or how you'd then add menus to the submenu. You could possibly do it like (leaving off the accelerators and other stuff for clarity):

GM_registerMenuCommand("Menu option", callback, "Sub Menu");

GM_registerMenuCommand("Menu option", callback, ["Sub Menu", "Sub Sub Menu"]);

The array version would allow for further nesting, and would recursively create any of the parent items as needed.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket