Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

How to customize(reduce) context menu entries?

  • 2 ответа
  • 1 имеет эту проблему
  • 1 просмотр
  • Последний ответ от 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?
Приложенные скриншоты

Изменено SpringQ

Выбранное решение

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.

Прочитайте этот ответ в контексте 👍 0

Все ответы (2)

more options

Выбранное решение

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 !