Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

How to customize(reduce) context menu entries?

  • 2 fhreagra
  • 1 leis an bhfadhb seo
  • 2264 views
  • Freagra is déanaí ó SpringQ

more options

Hi, my firefox context menu is too miscellaneous. I want to keep "copy" and "seach...for..." entries, and delete others, so I will not be distracted by them. How can I do that? Making the context menu as simple as possible?

Hi, my firefox context menu is too miscellaneous. I want to keep "copy" and "seach...for..." entries, and delete others, so I will not be distracted by them. How can I do that? Making the context menu as simple as possible?
Attached screenshots

Athraithe ag SpringQ ar

Réiteach roghnaithe

I feel your pain!

Not easy, but doable. Can get complicated when a user does many modifications via userChrome.css. And IMO too many people are using if far more than was conceived of when Netscape came up with that 'optional user file' that can be added the minor tweaks - part of Firefox which is derived from the original mid-1990's Netscape Navigator.

https://www.reddit.com/r/firefox/comments/7dvtw0/guide_how_to_edit_your_context_menu/

Here's the Firefox source code to see the contextual menu items:
https://searchfox.org/mozilla-release/source/browser/base/content/browser-context.inc

This is where you can get the scripts for userChrome.css .
https://github.com/stonecrusher/simpleMenuWizard
Updates provided there as needed, when Firefox is changed. Current version v1.26 is 4 months old now.

There are 16 separate CSS files that can be used to deal with the various Contextual Menus, one at a time to "toggle off" each menu item by setting that pref.
My advice is to use the @import url feature in the main userChrome.css file and have separate *.css file (like for select-context.css) saved in the userChrome.css (main file).
https://www.userchrome.org/adding-style-recipes-userchrome-css.html

I recommend using that @import url feature to help you troubleshoot future issues that will develop so that each batch of "contextual menu code" can be easily disabled more easily. I am still trying to fix what got broke 4 months ago with a Firefox update.

Read this answer in context 👍 0

All Replies (2)

more options

Réiteach Roghnaithe

I feel your pain!

Not easy, but doable. Can get complicated when a user does many modifications via userChrome.css. And IMO too many people are using if far more than was conceived of when Netscape came up with that 'optional user file' that can be added the minor tweaks - part of Firefox which is derived from the original mid-1990's Netscape Navigator.

https://www.reddit.com/r/firefox/comments/7dvtw0/guide_how_to_edit_your_context_menu/

Here's the Firefox source code to see the contextual menu items:
https://searchfox.org/mozilla-release/source/browser/base/content/browser-context.inc

This is where you can get the scripts for userChrome.css .
https://github.com/stonecrusher/simpleMenuWizard
Updates provided there as needed, when Firefox is changed. Current version v1.26 is 4 months old now.

There are 16 separate CSS files that can be used to deal with the various Contextual Menus, one at a time to "toggle off" each menu item by setting that pref.
My advice is to use the @import url feature in the main userChrome.css file and have separate *.css file (like for select-context.css) saved in the userChrome.css (main file).
https://www.userchrome.org/adding-style-recipes-userchrome-css.html

I recommend using that @import url feature to help you troubleshoot future issues that will develop so that each batch of "contextual menu code" can be easily disabled more easily. I am still trying to fix what got broke 4 months ago with a Firefox update.

more options

Thank you very much !