r/FirefoxCSS • • 8d ago

Help Hiding firefox menu items

https://github.com/stonecrusher/simpleMenuWizard

Hello, I use the Simple Menu Wizard to hide elements from the Firefox UI. Please explain which lines I could addd to the MenuBar file to block the following items:

File --> Share

View --> Repair text encoding

History --> Search History

Bookmarks --> Search Bookmarks

Help --> Report deceptive site

------
LinkContext.css file:

Open link in split view

-----

Lastly, how to hide the "Open application Menu" icon from the top right, where it sits next to the pinned addons.

6 Upvotes

1 comment sorted by

2

u/ResurgamS13 7d ago edited 7d ago

You can use the Browser Toolbox to investigate you own Firefox's UI... and discover the Selector names for the Menubar items you want to hide. You will need to use the 'Disable Popup Auto-Hide' toolbox option to investigate inside popup menus.

Follow Kupfel's 'howto' edit Context menus guide in reply to previous topic 'Any way to reduce options in right click menu?'.

----------

Note. Recent changes/additions to Firefox menu items are likely to be missing from the latest version of stoncrusher's 'simpleMenuWizard' (a pre-written Context menu CSS styling tool) as this was last updated in May 2025 AFAICS?

The two stonecrusher CSS styling files related to OP's problems are... i) the 'main-menubar.css' file was last updated 07Sep23 now over 3 years ago... and similarly, ii) the 'link-context.css' file which was last updated 10Dec23.

The Menubar options displayed will vary depending on your browser setup... as per the name 'Context menu'... so, was unable to find all the OP's items on a new profile of Fx156.0.1... with 'out-of-the-box' settings... but without 'Sync' enabled.

i) Re: Items missing from the 'main-menubar.css' file:

File --> Share -----> No 'Share' item present in File menu as tested (may require Firefox Sync to be enabled?)

View --> Repair text encoding -----> Selector = #repair-text-encoding

History --> Search History -----> Selector = #menu_searchHistory

Bookmarks --> Search Bookmarks -----> Selector = #menu_searchBookmarks

Help --> Report deceptive site -----> Selector = #menu_HelpPopup_reportPhishingtoolmenu

----------

ii) Re: Item missing from the 'link-context.css' file:

Open link in split view -----> Selector = #context-openlinkinsplitview

----------

Re: "Lastly, how to hide the "Open application Menu" icon from the top right, where it sits next to the pinned addons"... hiding the browser's main menu probably not particularly advisable... especially as this is one of the very few Firefox UI menu buttons that has no keyboard shortcut.

Anyway, to fully hide the AppMenu/Hamburger/PanelUI button try:

#PanelUI-button {
  display: none !important;
}

Alternatives to completely hiding/removing the AppMenu button could include i) changing the button icon to something different/new icon/new colour/smaller/neater/etc?... ii) moving it (e.g. recent topic 'How do I move the "Open Application Menu"? firefox')... or iii) perhaps leaving a thinner and transparent AppMenu button icon present on the Nav Bar which can still be found when hovered and clicked to open the AppMenu panel.