Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Created November 28, 2019 06:18
Show Gist options
  • Select an option

  • Save ruanbekker/f800e098936b27c7cf956c56005fe362 to your computer and use it in GitHub Desktop.

Select an option

Save ruanbekker/f800e098936b27c7cf956c56005fe362 to your computer and use it in GitHub Desktop.
Hide Native Tabs with Tree Style Tabs for Firefox

AddOn:

  1. Go to about:support in your address bar
  2. Look for your profiles directory and open it:

image

  1. Create a file named chrome/userChrome.css in your profile directory:

mkdir chrome && touch chrome/userChrome.css

  1. Populate the following css code:
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
  opacity: 0;
  pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
    visibility: collapse !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
  display: none;
}
.tab {
  margin-left: 1px;
  margin-right: 1px;
 }
  1. Then go to about:config in your address bar and set this to true:
  • toolkit.legacyUserProfileCustomizations.stylesheets
@rslay
Copy link

rslay commented Jan 8, 2026

There's now a helper extension for Tree Style Tabs that provides a button to toggle this (for both MacOS and Windows):
https://addons.mozilla.org/en-US/firefox/addon/toggle-native-tab-bar/

In fact, there's a bunch of handy helper extensions that build upon Tree Style Tabs to make it do more stuff, some of which I've found quite useful:
https://github.com/piroor/treestyletab/wiki/Helper-addons-extending-functionality-of-TST

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment