Firefox Userchrome
Introduction
This userchrome file for Firefox 146 hides the ‘Email image…’ and ‘Set as desktop background…’ items from the context menu when right-clicking on images (line 1), hides the extension icons in the right-click menu (line 2) and hides the close-button on tabs which is useful with vertical tabs enabled (line 3).
The file
#context-sendimage, #context-setDesktopBackground, #context-sep-setbackground { display: none; }
.menu-iconic[image] .menu-icon, .menuitem-iconic[image] .menu-icon { display: none; }
.tabbrowser-tab .tab-close-button { visibility: collapse !important; }
Installation
- Point Firefox to
about:support. Click the Open Directory button in the ‘Profile Directory’ field. - In the directory that opens, create a directory with the name
chromeand a file calleduserChrome.csswithin it. - In
userChrome.csspaste the above text and save the file. - Finally, point Firefox to
about:config, click Accept the Risk and Continue, type ‘legacyUser’ into the search field, and toggle the settingtoolkit.legacyUserProfileCustomizations.stylesheetstotrue. - Restart Firefox.
References
- Elmeris, Jānis. 2018.
How to remove an option from Firefox context menu
. Te nebūs nekādas emuārošanas! (blog).