Wikipedia:Reference desk/Archives/Computing/2022 August 11
Computing desk | ||
---|---|---|
< August 10 | << Jul | August | Sep >> | Current desk > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
August 11
editHide Tab Bar With One Tab
editI despise tabs, and when using Firefox, I hardly ever have multiple tabs open in a window. I used to use the "Hide Tab Bar With One Tab" add-on so that the tab bar would stop taking up space when I didn't have multiple tabs open. About 3 years ago they changed Firefox so that this add-on broke, but I learned that I could achieve the same effect through CSS. Specifically, I set toolkit.legacyUserProfileCustomizations.stylesheets to true in about:config, and created a userChrome.css file in the appropriate place, containing the following:
tab:only-of-type, tab:only-of-type + #tabs-newtab-button { display: none !important; } #tabbrowser-tabs, #tabbrowser-arrowscrollbox { min-height: 0 !important; }
But sometime recently, Firefox has been changed again to break this. Unfortunately I don't really speak CSS; I copied the above code from a posting someplace. I have confirmed (by making another change to it) that Firefox is still processing the userChrome.css file, so it must be something about the above code that stopped working. Can someone suggest a fix? --174.95.81.219 (talk) 23:11, 11 August 2022 (UTC)
- I use this and haven't seen breakage yet:
#tabbrowser-tabs, #tabbrowser-tabs arrowscrollbox { min-height: 0 !important; } #tabbrowser-tabs tab { height: var(--tab-min-height); } #tabbrowser-tabs tab:first-child:last-child { display: none !important; } #tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"] { visibility: collapse; }
- I don't now if they are all needed. 12:20, 14 August 2022 (UTC) — Preceding unsigned comment added by 85.76.72.63 (talk)
- I tried it, but I regret to say I see no difference in behavior. Is there a place where I could read about what things like #tabbrowser-tabs and the rest of it mean?
- By the way, I have Firefox 103.0.1 running on Fedora 36 Linux. --174.95.81.219 (talk) 05:16, 15 August 2022 (UTC)