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

  1. Point Firefox to about:support. Click the Open Directory button in the ‘Profile Directory’ field.
  2. In the directory that opens, create a directory with the name chrome and a file called userChrome.css within it.
  3. In userChrome.css paste the above text and save the file.
  4. Finally, point Firefox to about:config, click Accept the Risk and Continue, type ‘legacyUser’ into the search field, and toggle the setting toolkit.legacyUserProfileCustomizations.stylesheets to true.
  5. Restart Firefox.

References

  1. Elmeris, Jānis. 2018. How to remove an option from Firefox context menu. Te nebūs nekādas emuārošanas! (blog).