Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created March 13, 2026 15:42
Show Gist options
  • Select an option

  • Save jasonm23/84366648d2f0973b634469cb2285adf4 to your computer and use it in GitHub Desktop.

Select an option

Save jasonm23/84366648d2f0973b634469cb2285adf4 to your computer and use it in GitHub Desktop.

Firefox Context menu unf**ker

Turn off all or most of:

  • browser.translations.select.enable – Removes the "Translate Selection" button from the right-click menu.
  • screenshots.browser.component.enabled – Disables the built-in Firefox screenshot functionality, which also removes the "Take Screenshot" button.
  • dom.text_fragments.enabled – Disables Text Fragments support, which also removes the "Copy Link to Highlight" button (and disables the auto-focus on URLs that include #:~:text=...). Don’t want to remove this functionality? See my next post.
  • privacy.query_stripping.strip_on_share.enabled – Removes the "Copy Clean Link" / "Copy Clean Link to Highlight" buttons.
  • devtools.accessibility.enabled – Disables the DevTools Accessibility Inspector and removes the "Inspect Accessibility Properties" button.
  • browser.ml.chat.menu – Removes the "Ask an AI Chatbot" button.
  • browser.ml.linkPreview.enabled – Disables Link Previews (and the AI-generated key points inside them), removing "Preview Link" button.
  • dom.text-recognition.enabled – Disables OCR on images, removing the "Copy Text From Image" button.
  • browser.search.visualSearch.featureGate – Disables Visual Search (Google Lens integration) and removes "Search Image with Google Lens" button.
  • extensions.formautofill.addresses.enabled – Disables address autofill and the associated menu/button that sometimes appears in forms.
  • extensions.formautofill.creditCards.enabled – Disables credit card/payment method autofill and removes the associated menu/button that sometimes appears in forms.
  • widget.macos.native-context-menus – Turns off native macOS context menus so Firefox uses its own menus. This removes the "Services" button.
  • print.enabled – turn off the entire print menu.
@jasonm23
Copy link
Copy Markdown
Author

I leave the formautofill, print and dev inspect accessibility, switched on, ymmv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment