Update: Please note that Mozilla has removed the add-on bar in Firefox 29 and newer versions of the browser. You can only get it back by installing add-ons such as Classic Theme Restorer. There is no close icon on the bar though so that the instructions are no longer required.
A recent change in the latest Firefox 4 development releases has been driving me nuts lately. The developers thought it would be a good idea to add a close button to the add-on bar.
The add-on bar, being the successor of the status bar is currently handled different in the browser than other toolbars like the bookmarks toolbar.
Why? Because of the close button which does not really make sense at all since it is perfectly possible to close the add-on bar by right-clicking it and removing its selection from the enabled toolbars, or by going to View > Toolbars to do the same.
Even worse, if you happen to close the add-on bar accidentally you can only reopen it in the View > Toolbars menu.
Lastly, the position of the close button on the far left of the toolbar is irritating to say the least and inconsistent with the position of other close buttons in the browser.
It took me a while to find a way to remove the close button from the Firefox 4 add-on bar. You need to add three lines of code to the userChrome.css file in the Firefox profile folder.
Here is how it is done. Open your Firefox profile folder. The easiest way to locate it is to click on Help > Troubleshooting Information to reveal it. A click on Open Containing folder in the new tab opens the folder in the default file browser of the operating system.
Locate or create the folder chrome in there, and in that folder the file userchrome.css. If the file does not exist create a new plain text file and rename it accordingly. Then edit it with a standard text editor and add the following lines to the file while Firefox is closed.
visibility: collapse !important;
Start Firefox afterwards and you should see that the close button has been removed from the toolbar.
That's how you remove the close button from Firefox 4's add-on bar. A discussion is currently undergoing about the close button. It appears it is there to stay, even though some users have voiced concerns.
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.