Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

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