Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Please note that names of selectors are case sensitive, please note that some context menu items use an underscore instead of a dash.
- In order to remove context menu items start the userChrome CSS file with the @namespace line of code and then follow that with the names of the context menu items with commas between each item; this includes context menu selectors that have a comment block between itself and the next context menu selector. At the end of the list of context menu selectors end with this: {display: none !important;}
- */
- @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
- /*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 selector ID's that I was able to identify that work. You only need to choose one 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 Context 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 Context 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*/
- {display: none !important;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement