FF76 - Hide tab bar with one tab left, doesn't work anymore.

User Help for Mozilla Firefox
Post Reply
Centauri39
Posts: 355
Joined: November 25th, 2006, 2:18 pm

FF76 - Hide tab bar with one tab left, doesn't work anymore.

Post by Centauri39 »

I've been using the following script, which, after updating FF75 to 76, doesn't work anymore (in Linux Mint 19.3 MATE 64 bit):

Code: Select all

/*
How To:
1. Find your firefox profile folder : https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data
2. create a "chrome" folder if it doesn't exist
3. Paste content of this gist in a "userChrome.css" file
4. Restart Firefox
Don't hesitate to say if there are bugs, I only tested this for my workflow : I don't use tabs
at all but I want to see the bar if I open a tab by mistake (otherwise I sometimes lose a tab)
*/
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox {
	min-height: 0 !important;
}

/* Thanks to @Speravir for making it work again in the latest versions. */
#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"] {
	visibility: collapse;
}

/* I don't use tabs so I just hide the new tab button. You should be able to use a similar trick as the rule above with
css siblings selectors if you want to keep it when the tab bar is visible. */
#tabs-newtab-button { 
	visibility: collapse !important;
}

#tabbrowser-tabs tab {
	min-height: var(--tab-min-height)
}

#urlbar-container { max-width:400px!important; }
#search-container { max-width:450px!important; }
and in about:config

toolkit.legacyUserProfileCustomizations.stylesheets

is set to

true

How can I fix this, please?
User avatar
smsmith
Moderator
Posts: 19979
Joined: December 7th, 2004, 8:51 pm
Location: Indiana

Re: FF76 - Hide tab bar with one tab left, doesn't work anym

Post by smsmith »

Unfortunately as Firefox is updated the way you have to target parts of the chrome change. As such, this is not a Firefox bug, so I am moving this to Support.

See if this thread helps:
http://forums.mozillazine.org/viewtopic ... &t=3061539
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.
Centauri39
Posts: 355
Joined: November 25th, 2006, 2:18 pm

Re: FF76 - Hide tab bar with one tab left, doesn't work anym

Post by Centauri39 »

I replaced the previous code by the one from the 10th post of your link.
Now, that wasted space is gone.
That's very handy especially for small displays like the ones on netbooks.

Great! Thank you!
Post Reply