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!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Buscar en Ayuda

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

Remove Firefox Screenshots from the mouse's context-menu

  • 3 respuestas
  • 2 tienen este problema
  • 1 visita
  • Última respuesta de JadenStevenson

more options

I think the screenshot feature is pretty useful, so I'd like to keep it. However, as someone who uses the Developer Tools a lot, it is fairly frustrating to me that the FF Screenshots feature is added to the bottom of the context menu.

My question: Is it possible to remove FF Screenshots from the context menu, while keeping the feature itself active?

I think the screenshot feature is pretty useful, so I'd like to keep it. However, as someone who uses the Developer Tools a lot, it is fairly frustrating to me that the FF Screenshots feature is added to the bottom of the context menu. My question: Is it possible to remove FF Screenshots from the context menu, while keeping the feature itself active?
Capturas de pantalla adjuntas

Modificadas por Zambaballen el

Solución elegida

I suppose you are familiar with toggling the extensions.screenshots.disabled preference to true in order to disable the feature entirely, which is not what you want.

To hide the context menu entry only, try adding this to your (or create a) userChrome.css file: @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); #context-navigation, #screenshots_mozilla_org-menuitem-_create-screenshot { display: none !important } (Source, including important remarks and a link to userChrome.css help)

Note that the entry will still be enabled in the address bar’s three-dot menu, which may be no issue. If it is, use this for the second line: #context-navigation, #screenshots_mozilla_org-menuitem-_create-screenshot, #pageAction-panel-screenshots

Leer esta respuesta en su contexto 👍 2

Todas las respuestas (3)

more options

Solución elegida

I suppose you are familiar with toggling the extensions.screenshots.disabled preference to true in order to disable the feature entirely, which is not what you want.

To hide the context menu entry only, try adding this to your (or create a) userChrome.css file: @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); #context-navigation, #screenshots_mozilla_org-menuitem-_create-screenshot { display: none !important } (Source, including important remarks and a link to userChrome.css help)

Note that the entry will still be enabled in the address bar’s three-dot menu, which may be no issue. If it is, use this for the second line: #context-navigation, #screenshots_mozilla_org-menuitem-_create-screenshot, #pageAction-panel-screenshots

more options

That bottom section of the context menu is used by all extensions that create new menu items, so it may be difficult to keep it clear in the long run. You can use a custom style rule to force the Inspect Element item and its accompanying separator to the bottom of the menu so that regardless of how many extensions add to it, you will always find it in the same place.

/* 
   Move "Inspect Element" and preceding separator 
   down the menu
*/
#context-inspect, #inspect-separator {
  -moz-box-ordinal-group: 20 !important;
}

For more information on setting up a userChrome.css file, see: https://www.userchrome.org/how-create-userchrome-css.html

more options

I compiled a list of the ID's of all the CSS context menu selectors. This includes all of the separators.

I figured it may be useful to someone, especially since I was not able to find all of these in one place and had to follow a couple separate posts on the internet in order to figure out what every thing is called. As a note, these ID's are current as of Firefox ver. 61.0.2 (64-bit)


Removes Items from Tab Context Menu

#context_reloadTab
#context_toggleMuteTab
#context_pinTab
#context_unpinTab
#context_duplicateTab
#context_openTabInWindow
#context_sendTabToDevice_separator
#context_sendTabToDevice
#context_reloadAllTabs
#context_bookmarkAllTabs
#context_closeTabsToTheEnd
#context_closeOtherTabs
#context_undoCloseTab
#context_closeTab

Removes Separators from the Tab Context Menu. Keep in mind that for each separator below there are multiple names I was able to identify that work. You only need to copy one item in order to remove the specified separator.

1st separator
menuitem[label="Mute Tab"] + menuseparator
#context_toggleMuteTab+menuseparator

2nd separator
menuitem[label="Move to New Window"] + menuseparator
#context_openTabInWindow+menuseparator

3rd separator
#context_sendTabToDevice_separator
#context_sendTabToDevice+menuseparator

4th separator
menuitem[label="Close Other Tabs"] + menuseparator
#context_closeOtherTabs+menuseparator

5th separator
menuitem[label="Close Tab"] + menuseparator
#context_closeTab+menuseparator

Removes Items from Right Click Menu; Diagram here: https://imgur.com/b5gEfUy

#context-back
#context-forward
#context-reload
#context-stop
#context-bookmarkpage
#context-navigation
#context-sep-navigation
#context-savepage
#context-pocket
#context-sep-sendpagetodevice
#context-sendpagetodevice
#context-sep-viewbgimage
#context-viewbgimage
#context-selectall
#context-sep-selectall
#context-sep-viewsource
#context-viewsource
#context-viewinfo
#inspect-separator
#context-inspect
#contentAreaContextMenu > menuseparator:nth-child(92)
#screenshots_mozilla_org_create-screenshot

Removes Items from Right Click on Selected Links Menu; Diagram here: https://imgur.com/e9AaMx3

#context-openlinkintab
#context-openlinkinusercontext-menu
#context-openlink
#context-openlinkprivate
#context-sep-open
#context-bookmarklink
#context-savelink
#context-savelinktopocket
#context-copylink
#context-copy
#context-sep-selectall
#context-searchselect
#context-sep-sendlinktodevice
#context-sendlinktodevice
#context-viewpartialsource-selection
#inspect-separator
#context-inspect
#contentAreaContextMenu > menuseparator:nth-child(92) This is a Separator