Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Remove Firefox Screenshots from the mouse's context-menu

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?
Captures d’écran jointes

Modifié le par Zambaballen

Solution choisie

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

Lire cette réponse dans son contexte 👍 2

Toutes les réponses (3)

more options

Solution choisie

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