為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Remove menubar menus with userchrome.css

  • 6 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 noel_envode

more options

I have this code to remove the Edit and Help menus

  1. helpMenu, #edit-menu { display: none !important; }

But I can't get it to work for the File, View, History, Bookmarks, and Tools menus.

I'd also like to replace the Tools and Help menus with custom buttons.

I have this code to remove the Edit and Help menus #helpMenu, #edit-menu { display: none !important; } But I can't get it to work for the File, View, History, Bookmarks, and Tools menus. I'd also like to replace the Tools and Help menus with custom buttons.

被選擇的解決方法

cor-el said

You can see the IDs in this screenshot.

Thank you. That's precisely what I came here for.

the-edmeister said

IMO, just hide the Menu Bar and when you want to access those menu item categories just hit the Alt key to temporarily reveal the Menu Bar. Thenb click on what category you want to access. Also, you can access each of those categories via the keyboard directly using the underlined Hotkey's. IOW, if you want to open Options - hit Alt, then hit T (for Tools), then hit O (for Options).

the-edmeister, You put the icing on the cake. I got more than I bargained for today. Two for the price of one.

Xlnt Alt key tip. What I also like about it is that it gives "drag space". I recently noticed that enabling the menubar disables the "drag space" option in customize. Now you have the best of both worlds.

Thanks!

從原來的回覆中察看解決方案 👍 0

所有回覆 (6)

more options

Where are these menu bars you would like to remove ? If it is at the top of the browser to the far right why do you not just turn them off by going to Customize --> mouse to the bottom of the page to Tool Bars, or mouse top of the browser and Right Click.

more options

I'm, referring to the dropdown menus on the menubar

more options

noel_envoide said

I'm, referring to the dropdown menus on the menubar

So was I : https://support.mozilla.org/en-US/kb/customize-firefox-controls-buttons-and-toolbars#w_turn-on-the-title-bar-menu-bar-or-bookmarks-toolbar

Reverse the above.

more options

IMO, just hide the Menu Bar and when you want to access those menu item categories just hit the Alt key to temporarily reveal the Menu Bar. Thenb click on what category you want to access.

Also, you can access each of those categories via the keyboard directly using the underlined Hotkey's. IOW, if you want to open Options - hit Alt, then hit T (for Tools), then hit O (for Options).

more options

You can see the IDs in this screenshot.

more options

選擇的解決方法

cor-el said

You can see the IDs in this screenshot.

Thank you. That's precisely what I came here for.

the-edmeister said

IMO, just hide the Menu Bar and when you want to access those menu item categories just hit the Alt key to temporarily reveal the Menu Bar. Thenb click on what category you want to access. Also, you can access each of those categories via the keyboard directly using the underlined Hotkey's. IOW, if you want to open Options - hit Alt, then hit T (for Tools), then hit O (for Options).

the-edmeister, You put the icing on the cake. I got more than I bargained for today. Two for the price of one.

Xlnt Alt key tip. What I also like about it is that it gives "drag space". I recently noticed that enabling the menubar disables the "drag space" option in customize. Now you have the best of both worlds.

Thanks!