FF: Edit/minimize context menues

Started by rcjordan, July 02, 2026, 10:51:51 PM

Previous topic - Next topic

rcjordan

/*
#############################################################
If you want to keep your `userChrome.css` file as clean and readable as possible, you can absolutely drop the specific FF `#context-` lines and just use the label syntax.

Remember these two formatting golden rules:
1. Use `menuitem` for standard clickable lines (e.g., `menuitem[label^="Save Page As"]`).
2. Use `menu` for lines that expand into a sub-menu with an arrow (e.g., `menu[label^="Send to Mobile"]`).
#############################################################
*/

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Hide "Bookmark Page" from the right-click context menu */
#context-bookmarkpage {
  display: none !important;
}

/* Hide "Bookmark Link" if you also want it gone when right-clicking links */
#context-bookmarklink {
  display: none !important;
}

/* Target the extension item by its exact visible text */
menuitem[label="Quickly bookmark this page"] {
  display: none !important;
}

/* Target the extension item by its exact visible text */
menuitem[label="Take Screenshot"] {
  display: none !important;
}

/* Target the extension item by its exact visible text */
menuitem[label="Inspect Accessibility Properties"] {
  display: none !important;
}

/* Target the extension item by its exact visible text */
menuitem[label="View Page Source"] {
  display: none !important;
}

/* Target the extension item by its exact visible text */
menuitem[label="Select All"] {
  display: none !important;
}

/* Target the extension item by its exact visible text */
menuitem[label="Remove the bookmark(s) for this page"] {
  display: none !important;
}

/* Target the item by beginning of visible text */
menuitem[label^="Preview Link"] {
  display: none !important;
}

/* Hide "Send to Mobile" / "Send Page to Device" options */
#context-sendpagetodevice,
#context-sendlinktodevice,
menu[label^="Send to Mobile"],
menuitem[label^="Send to Mobile"] {
  display: none !important;
}

/* Hide "Save Page As..." from the context menu */
#context-savepage,
menuitem[label^="Save Page As"] {
  display: none !important;
}

/* Hide "Zoom Page" options */
menuitem[label^="Zoom Page WE"] {
  display: none !important;
}

/* Hide "Save Link As..." from the context menu */
#context-savelink,
menuitem[label^="Save Link As"] {
  display: none !important;
}

/* Hide "Open in New Discarded Tab" by its exact visible text */
menuitem[label^="Open in New Discarded Tab"] {
  display: none !important;
}