How to hide tab bar (tabstrip) in Firefox 57+ Quantum

How to hide/disable/remove the tab bar in Firefox 57+ ("Quantum")?

The goal is to just hide the tab bar totally. Useful if paired with extensions like "Tree Style Tab".

Note: there is a similarly looking question here: Firefox hide everything except content area of the browser but it is not properly split into logically independent tasks. Also, it's outdated.

2

5 Answers

  1. Open your firefox "profile directory"
    • Official docs how to do that:
    • Or just open:
      • Linux: ~/.mozilla/firefox/<profile>
      • OSX:
        • ~/Library/Application Support/Firefox/Profiles/<profile folder>
        • or ~/Library/Mozilla/Firefox/Profiles/<profile folder>
      • Windows: %appdata%\Mozilla\Firefox\Profiles\<profile folder>
  2. Create directory chrome/ if it doesn't exist
  3. Create file chrome/userChrome.css inside if it doesn't exist.
  4. Add this text to the file:

    #TabsToolbar { visibility: collapse !important; }
  5. Ensure the config toolkit.legacyUserProfileCustomizations.stylesheets is set to true (required for Firefox69+, the stable version since September 2019), see this tutorial.

  6. Save the file and reload firefox. You should see no tab bar anymore.

P.S. Solution partly taken from here:

21

I want the tab bar to auto hide when there's 1 tab and appear when there's multiple. Not the same as the question but this is about the only Google result right now for 57+ so for those who need it in userChrome.css

#tabbrowser-tabs, #tabbrowser-tabs arrowscrollbox { min-height: 0 !important; }
#tabbrowser-tabs tab { height: var(--tab-min-height); }
#tabbrowser-tabs tab:first-of-type:last-of-type { display: none !important; }
3

Unfortunately, that particular UI customization is not currently possible via Firefox Quantum's supported add-on APIs; a proper solution will be possible once Bug 1332447 is resolved.

Until then, VasyaNovikov's tweak to userChrome.css works, though editing that file is definitely an at-your-own-risk, not-officially-supported option.

Add to userChrome.css

#TabsToolbar { visibility: collapse;
}
#titlebar { margin-bottom: -25px !important;
}
#titlebar-buttonbox { height: 32px !important;
}
#nav-bar { margin-right: 42px;
}
#main-window[sizemode="maximized"] #nav-bar { margin-right: 42px;
}

Works on Firefox 70.0 but the _ □ X are missing.

1

I distilled VasyaNovikov's answer into a gist to run on my Linux and OS X boxen, hopefully it helps anyone else out there with several personal machines. I want to also point out that after applying his answer, the back button will sit underneath the close button in OS X. The fix is to insert three flexible spaces into the toolbar (right-click on toolbar, select Customize..., then insert three spaces so the back button moves to the right).

If someone has the right CSS to insert into userChrome.css to accomplish the equivalent effect upon the back button, then that would be greatly appreciated.

You Might Also Like