This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ค้นหาฝ่ายสนับสนุน

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

เรียนรู้เพิ่มเติม

How can I hide the menu bar of better a specific option without using an addon?

  • 3 การตอบกลับ
  • 0 คนมีปัญหานี้
  • 24 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย cor-el

more options

For security purpose on my environment, I would like to hide the Menu Bar option or (better) restrict the right to install an add-on, change the proxy configuration etc..

I dont want to use an add-on for that as it will perhaps not work anymore if I update my firefox.

So i am searching for a registry/file user preference solution or anything else that will let me doing that.

Thank you for your help

This happened

Every time Firefox opened

everytime

User Agent

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

For security purpose on my environment, I would like to hide the Menu Bar option or (better) restrict the right to install an add-on, change the proxy configuration etc.. I dont want to use an add-on for that as it will perhaps not work anymore if I update my firefox. So i am searching for a registry/file user preference solution or anything else that will let me doing that. Thank you for your help == This happened == Every time Firefox opened == everytime == == User Agent == Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

การตอบกลับทั้งหมด (3)

more options

You can hide the menu bar and other toolbars with code in userChrome.css below the @namespace line.

See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#toolbar-menubar {display:none!important;}

See also http://kb.mozillazine.org/Locking_preferences

เปลี่ยนแปลงโดย cor-el เมื่อ

more options

Thanks a lot, it is working fine !

Another question please. I would like to deploy this solution on several computers and for every users in our company. My question is "how can I do that as the path is not the same for every computer (xxxxxxxx.default folder)?"

Thank you.

more options

For new users and profiles you can place the file userChrome.css in the default template chrome folder where also the userChrome-example.css file is located. C:\Program Files\Mozilla Firefox\defaults\profile\chrome\

For existing profiles the only solution is to copy the file userChrome.css to the chrome folder in each profile folder. That would require to parse profiles.ini to get the (relative) path of the current default profile that has a random (salted) name (xxxxxxxx.default).