Firefox tab bar on mouse over

Since Firefox 57 I’m using Tab Center Redux for showing my tabs on the left side. Because of that (and since screen space is precious) I didn’t need the default tab bar and so I disabled it with the hack I found in the wiki of Tab Center Redux:

#tabbrowser-tabs {
visibility: collapse !important;

I found this solution quite useful over the last months, but recently I got some web design to do and split my screen horizontally in half. In this mode the width of the sidebar used to much space. Disabling it with F1 also didn’t really help because then I had no tab list at all.

Today I got the idea of only showing the default tab bar, when necessary. Since I can’t capture keys with CSS (and I didn’t find a way to create a user JS file like userChrome.css) and pressing a key to show and hide would be too much work, I got the idea of showing the tabbar when hovering.

Animated picture of the Tabbar showing and hiding.
Click on the image to enlarge it.

The trick is to show a small rest of the tab bar above the address bar by default (in this case 5px). Only when the mouse cursor hovers this area, the full tab bar is shown. The following CSS code does this:

#TabsToolbar {
min-height: 5px !important;
max-height: 5px !important;
opacity: 0 !important;

#TabsToolbar:hover {
max-height: inherit !important;
opacity: 1 !important;

To use this, you have to paste this CSS code in your userChrome.css file.

Published by

Marcel Kapfer

Composer, Designer and Programmer

Leave a Reply

Your email address will not be published. Required fields are marked *