Hide contextmenu items in Firefox Photon
Hide default context menu items in Firefox Proton (89+) release versions
To remove entries from the context menu you need to
Find your profile folder (profile names are different for everyone):
Address bar > Enter about:support
> Click Open Folder
(second one, not the "Update Folder").
Download this project and unzip it.
Move userChrome.css
and simpleMenuWizard
into [...]\profile folder\chrome\
directory.
If chrome
folder doesn't exist, create it.
If userChrome.css
already exists, do not overwrite and proceed here.
Open userChrome.css
with a texteditor for a general overview and some options.
Open the simpleMenuWizard
directory and edit each .css file to customize them to your needs.
Remove menu item: Remove /*
at the beginning of the line.
Leave menu item: Add /*
to the beginning of the line (by default every option is deactivated).
Each file is for another context:
blank-context.css
when right-clicking on a blank area or textframe-context.css
when right-clicking on an iframeimage-context.css
when right-clicking on an imageinput-context.css
when right-clicking on an input-fieldlink-context.css
when right-clicking on a linkmain-hamburger.css
when left-clicking on the three lines on top rightmain-menubar.css
when left-clicking on the main menubar (open with ALT key - file, edit, view, ...)media-context.css
when right-clicking on media like audio or html5 videonewtab-containers.css
when right-clicking on the plus sign to open a new tab or containerselect-context.css
when right-clicking on selected text or objectsidebar-context.css
when right-clicking on items in bookmark- or history sidebarsidebar-header.css
when left-clicking the sidebar dropdown menusource-context.css
when right-clicking a blank area on view-source pagestab-context.css
when right-clicking on a tabtoolbar-context.css
when right-clicking on toolbar or tabbarurlbar-context.css
when right-clicking on the addressbarLoad about:config
into addressbar. Search for toolkit.legacyUserProfileCustomizations.stylesheets
and make sure the value is true
.
Restart Firefox to make changes work.
Important notes:
widget.macos.native-context-menus
to false
otherwise it won't work.If you don't use either of those "internal addons" at all, you can just disable them, which will also remove their context menu entries everywhere.
How to do it: Load about:config
into addressbar and set the respective value.
extensions.pocket.enabled
and switch to false
.identity.fxaccounts.enabled
and switch to false
.extensions.screenshots.disabled
and switch to true
.Easiest thing to do is renaming the userChrome.css
that came with the zip package of simpleMenuWizard.
Rename it to simpleMenuWizard.css
and put it into chrome
directory next to the already existing userChrome.css
.
Open the old userChrome.css
which is filled with foreign code and add @import url("./simpleMenuWizard.css");
to the very top. That's it!
You can now edit simpleMenuWizard.css
for a general overview and some options or continue with step 5.
Delete all the files and folders that came with this project.
So if you don't use other modifications, you can simply delete the whole [...]\profile folder\chrome\
directory.
Restart your browser.
For bugreports and missing items you're welcome to open an issue here or make a pull request.
Tidy up your context menus, be faster, have a cleaner UI!
This project is inspired by BubiBalboa's post on reddit and by an issue in the great CustomCSSforFx project.