Firefox: Hide Native Tabs and Titlebar

Xilin Sun
Xilin Sun
Dec 26, 2017 · 3 min read

One of the most popular Firefox add-on — Tree Style Tab has been ported to the really fast Quantum based Firefox releases (57+). For some reason, this plugin is not yet able to auto-hide Firefox native tabs, so users now have two tabs — one at the top and the other at the side.

Until Tree Style Tab adds auto-hide functionality, the temporary solution is to hide the native tabs manually, using userChrome.css file.

First of all, go to about:config, and change the value of toolkit.legacyUserProfileCustomizations.stylesheets to true.

Then click on menu — help — Troubleshooting Information.

Look for “Profile Directory” in the page.

Click on “Open Directory”, and create “’chrome” folder inside, if there isn’t one already.

Inside the “chrome” folder, create or edit the “userChrome.css” file and add the following

/* hides the native tabs */
#TabsToolbar {
visibility: collapse;
}

Now, the top tabs bar should be hidden.

Optionally, hide the titlebar to reclaim some pixels, note that this will hide your window buttons.

#titlebar {
visibility: collapse;
}

And the sidebar header

#sidebar-header {
visibility: collapse !important;
}

This is how it looks like, hiding all the above, under Linux.

This is what I use under Windows, hiding only the TabsToolbar, while keeping the titlebar, and leave some space for the window buttons:

/* hides the native tabs */
#TabsToolbar {
visibility: collapse;
}
/* leaves space for the window buttons */
#nav-bar {
margin-top: -8px;
margin-right: 74px;
margin-bottom: -4px;
}

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store