Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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).