Any Quantum add-on to edit menus / context menus?

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
User avatar
JLJ
Posts: 84
Joined: December 9th, 2005, 6:27 pm

Any Quantum add-on to edit menus / context menus?

Post by JLJ »

There was a great XUL extension titled MENU EDITOR which allowed hiding entries from menus, effectively cleaning them up and helping prevent errant clicks. I haven't found anything to replace it for the Quantum (Web Extension) age. Anyone have a suggestion? Bottom line I'd like to be able to edit the right-click context menu(s) for webpage elements, eg, hide "Check Spelling" and such. ?? THX
User avatar
keithy397
Posts: 2352
Joined: August 29th, 2004, 6:49 pm
Location: North Wales, UK.

Re: Any Quantum add-on to edit menus / context menus?

Post by keithy397 »

JLJ wrote:There was a great XUL extension titled MENU EDITOR which allowed hiding entries from menus, effectively cleaning them up and helping prevent errant clicks. I haven't found anything to replace it for the Quantum (Web Extension) age. Anyone have a suggestion? Bottom line I'd like to be able to edit the right-click context menu(s) for webpage elements, eg, hide "Check Spelling" and such. ?? THX
Hi JLJ,
Following the demise of Menu Editor the only near good enough replacement was Menu Wizard. I don't know though if it's compatible with Quantum Firefox as I haven't made the move yet.
Cheers,
Keith
User avatar
JLJ
Posts: 84
Joined: December 9th, 2005, 6:27 pm

Re: Any Quantum add-on to edit menus / context menus?

Post by JLJ »

keithy397 wrote: Hi JLJ,
Following the demise of Menu Editor the only near good enough replacement was Menu Wizard. I don't know though if it's compatible with Quantum Firefox as I haven't made the move yet.
Thanks ~ will check it out ~ FYI it's only available on Legacy Collector which is shutting down at the end of this year :-(

https://legacycollector.org/firefox-add ... index.html
morat
Posts: 6405
Joined: February 3rd, 2009, 6:29 pm

Re: Any Quantum add-on to edit menus / context menus?

Post by morat »

There are no Firefox Quantum addons to remove menu items. It's simply not possible with the WebExtensions API.

You can use the userChrome.css file.

Code: Select all

/* Firefox userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

menuseparator[id="spell-separator"],
menuitem[id="spell-check-enabled"] {
  display: none !important;
}
http://kb.mozillazine.org/UserChrome.css

How do we get DOM info for userChrome in 57+
http://forums.mozillazine.org/viewtopic ... &t=3034448
User avatar
JLJ
Posts: 84
Joined: December 9th, 2005, 6:27 pm

Re: Any Quantum add-on to edit menus / context menus?

Post by JLJ »

[quote="morat"]There are no Firefox Quantum addons to remove menu items. It's simply not possible with the WebExtensions API.

You can use the userChrome.css file.

Code: Select all

/* Firefox userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

menuseparator[id="spell-separator"],
menuitem[id="spell-check-enabled"] {
  display: none !important;
}
Thanks. Here's hoping they never actually prohibit loading userchrome data in later iterations...
max2
Posts: 278
Joined: September 17th, 2011, 5:37 pm

Re: Any Quantum add-on to edit menus / context menus?

Post by max2 »

Thanks!
Post Reply