MozillaZine

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

Announce and Discuss the Latest Theme and Extension Releases.
JLJ

User avatar
 
Posts: 72
Joined: December 9th, 2005, 6:27 pm

Post Posted November 6th, 2019, 6:57 pm

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

keithy397

User avatar
 
Posts: 2346
Joined: August 29th, 2004, 6:49 pm
Location: North Wales, UK.

Post Posted November 7th, 2019, 4:15 am

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

JLJ

User avatar
 
Posts: 72
Joined: December 9th, 2005, 6:27 pm

Post Posted November 7th, 2019, 10:05 am

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: 3438
Joined: February 3rd, 2009, 6:29 pm

Post Posted November 7th, 2019, 11:44 am

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.php?f=23&t=3034448

JLJ

User avatar
 
Posts: 72
Joined: December 9th, 2005, 6:27 pm

Post Posted November 7th, 2019, 2:52 pm

[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: 261
Joined: September 17th, 2011, 5:37 pm

Post Posted November 7th, 2019, 4:33 pm

Thanks!

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 1 guest