Remove New Tab Button From Firefox 3.5
Posted: July 1st, 2009 | Author: jriggs | Filed under: firefox | Tags: customize, firefox, new, remove, tab | 35 Comments »I have just upgraded to the latest version of Firefox. While there are many new features in 3.5, the one that you will probably notice first is the addition of a button to the right of your tabs that will open a new blank tab.
Since I use shortcut keys to open a new tab this button is pretty much useless to me. I like to keep my browser as uncluttered as possible. Fortunately, if you aren’t afraid of some minor text editing you can remove this button in about one minute.
You’ll need to find your user profile for Firefox which contains the userChrome.css file. On my XP computer it is located here:
C:\Documents and Settings\<your_account>\Application Data\Mozilla\Firefox\Profiles\ftz0ce5v.default\chrome
On OS X you will find this file here:
~/Library/Application Support/Firefox/Profiles/ftz0ce5v.default/chrome/
On Windows 7:
%appdata%/Mozilla/Firefox/Profiles/ftz0ce5v.default/chrome
Note that ‘ftz0ce5v’ is randomly generated by Firefox so you will see something slightly different. Once in this directory you should see a file named ‘userChrome-example.css’. Make a copy of this file in the same directory and rename it to ‘userChrome.css’.
Open the file you have just created an add the following line:
.tabs-newtab-button {display: none}
Restart Firefox and you will see the button is gone.
Related posts:
- Show Close Button In Last Tab with Firefox 3.5
- Useful Shortcuts For Firefox
- Disable javascript in Firefox
- My favorite Firefox Addons
- Firefox: Create a Bookmark that Validates html







FYI
The path to the same file in Mac OS X is ~/Library/Application Support/Firefox/Profiles/zun1tuqq.default/chrome/userChrome-example.css
Thanks Bill, I have added this to the post!
Thanks.
How do you get rid of the drop down tabs button on the far right? This is like having another toolbar and its just making my view smaller.
Many thanks. I hated it at first glance
Appreciated. Do you know how to bring back the close button on the last tab?
@Luke,
http://joe-riggs.com/blog/2009/07/show-close-button-in-last-tab-with-firefox-3-5/
Thanks for this info man, very helpful. Instantly knew I did not want this button.
Tried to do your fix but couldn’t find the file to edit in question.
Running Windows 7 RC 64-bit.
Please update your document, had to download addon that you commented on badmouthing because you had “written a how-to” that didn’t work for me I might add….
@Paul – thanks for the feedback. Though I don’t have Windows 7, I found the file’s location in about 30 seconds on google.
Not quite sure what you mean about badmouthing the other add-on, I merely suggested an alternative, but thanks again for your comment!
thanks a lot !!!
Yes, indeed, thanks so much! It was hate at first sight – though not as bad as the (pre-3.5) tab close buttons (about:config browser.tabs.closeButtons = 2 to kill them). Easy to search for this page because of the button’s tool tip.
Thank you! I immediately searched for a preference to get rid of it. Luckily, you provided!
If I’d wanted a “new tab” button like IE, I’d use IE.
Thanks for this, it was the first thing I did upon upgrading.
Likewise, noticed it straight away and wanted rid. Screen space is premium, so thanks for the help in shifting the little bugger.
Thanks for this, worked like a charm on Ubuntu.
Btw, the file path in Ubuntu is: /home/mike/.mozilla/firefox/3649hhmn.default/chrome/userChrome-example.css
Works like a charm, not a button I need or wanted and I don’t like software forcing \noobish\ options like these on me so I zapped it away with your help. Thanks.
The path in Windows Vista is:
C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles
However, the Windows 7 path works in Windows Vista as well.
Same story here.. immediately wanted rid. Many thanks for sharing your solution.
As for poster ‘Paul’ – perhaps you need a “How To…. Appreciate The Fact That People Are Trying To Help”.
[...] This post was Twitted by vmrob [...]
Awesome. Does anyone know a way to remove that drop-down menu on the far right?
@Calvin add this to your userchrome.css file:
/* Disable “List all Tabs” Button */
.tabs-alltabs-button {
display: none !important;
}
/* Disable Container box for “List all Tabs” Button */
.tabs-alltabs-box {
display: none !important;
}
Thanks Joe, meant a lot to me. Now there are even less reasons to use Iexplorer.
Really cool. Thank you for the knowledge.
I need help
I am not very computer savvy and I tried to apply this fix (for the same reason everyone else) and i was not successful.
When i save the userChrome.css a message pops up and it reads:
Cannot create the C:\program files\mozilla firefox\defaults\profile\chrome\userchrome.css file.
Make sure that the file path and file name are correct.
I am running vista 32-bit
I am not sure what i am doing wrong. i would appreciate your help.
Thank you!
Thanks
userchrome.css file does not exist anywhere on my c: there is a file however called userChrome-example.css so i don’t know how to add this line of code
Worked great, thanks!
(oh and matt, can’t you read the instructions?)
I’ve never edited the CSS before, was hoping to find a fix for this in about:config. Anyway, I understand how to do this but do want to confirm one thing. Do I leave all the existing text in the new css file, and simply copy/paste this code at the top or bottom? Not sure if I am to delete the text from the example and only have the code in the finished userChrome.css file. Thanks!
Thanks, worked like a charm!
doh!!
thanks, got it working
Thank you, thank you, thank you!
Thanks for your tip !
Thanks!
;P
it works
thx