Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

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

  • 3 réponses
  • 0 a ce problème
  • 24 vues
  • Dernière réponse par 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)

Toutes les réponses (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

Modifié le par 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).