Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Learn More

How to customize(reduce) context menu entries?

  • 2 respostas
  • 1 tem este problema
  • 1784 visualizações
  • Última resposta por 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?
Capturas de ecrã anexadas

Modificado por SpringQ a

Solução escolhida

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.

Ler esta resposta no contexto 👍 0

Todas as respostas (2)

more options

Solução escolhida

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 !