Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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.

Search Support

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.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Firefox 5.01 how to edit css for all users

  • 2 uphendule
  • 4 zinale nkinga
  • 1 view
  • Igcine ukuphendulwa ngu markb432

more options

Hello. I'm trying to configure Firefox 5.01 for deployment to our corporate users. One of my goals is to disable and hide the Sync tab in the Options menu. I've found some help on creating a userChrome.css file and placing it in the users profile \Chrome directory. Firefox doesn't seem to always like that and crashes often and sometimes it seems fine. I've been using #BrowserPreferences radio[pane="paneSync"] { display: none !important; } I'd like to know where I can place a css file in the installer or which file to edit in the installer or whatever means there is to avoid having to copy a file to each users profile at some random point in time after they have launched Firefox and created a profile directory. I'd like that tab to be removed at install-time without needing to go back and retrofit every installation. Thanks

Hello. I'm trying to configure Firefox 5.01 for deployment to our corporate users. One of my goals is to disable and hide the Sync tab in the Options menu. I've found some help on creating a userChrome.css file and placing it in the users profile \Chrome directory. Firefox doesn't seem to always like that and crashes often and sometimes it seems fine. I've been using #BrowserPreferences radio[pane="paneSync"] { display: none !important; } I'd like to know where I can place a css file in the installer or which file to edit in the installer or whatever means there is to avoid having to copy a file to each users profile at some random point in time after they have launched Firefox and created a profile directory. I'd like that tab to be removed at install-time without needing to go back and retrofit every installation. Thanks

Okulungisiwe ngu markb432

Isisombululo esikhethiwe

For newly created profiles you can place files in the default template location in \defaults\profile\chrome for the userChrome.css file.

  • C:\Program Files\Mozilla Firefox\defaults\profile\

Files can only be added to already existing by copying them to that profile folder.

You may want to consider hiding menu entries in the Firefox App menu and Tools menu as well.


#sync-setup-appmenu, #sync-syncnowitem-appmenu,
#sync-setup, #sync-syncnowitem,
#BrowserPreferences radio[pane="paneSync"]
{display:none!important;}
Funda le mpendulo ngokuhambisana nalesi sihloko 👍 0

All Replies (2)

more options

Isisombululo Esikhethiwe

For newly created profiles you can place files in the default template location in \defaults\profile\chrome for the userChrome.css file.

  • C:\Program Files\Mozilla Firefox\defaults\profile\

Files can only be added to already existing by copying them to that profile folder.

You may want to consider hiding menu entries in the Firefox App menu and Tools menu as well.


#sync-setup-appmenu, #sync-syncnowitem-appmenu,
#sync-setup, #sync-syncnowitem,
#BrowserPreferences radio[pane="paneSync"]
{display:none!important;}
more options

Thank you! I've been trying to learn to use DOM but I never would have found those other settings on my own. However, on Windows 7 Firefox does not pickup the settings in the \chrome folder so I had to write a script to copy the files (userchrome and usercontent) to the profile directory. The built-in process works in Firefox 4 but not 5. Oh well.