Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Created November 28, 2019 06:18
Show Gist options
  • Save ruanbekker/f800e098936b27c7cf956c56005fe362 to your computer and use it in GitHub Desktop.
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
@KooperL
Copy link

KooperL commented May 23, 2022

Amazing

@benmichael
Copy link

Yas, look at this guy's gist coming up 1st in my google search result when I reinstalled Firefox and had to get this done again.

@zpartakov
Copy link

thks so much @ruanbekker ! amazing that this information is not available directly @ff via a wysiwyg

@icecreammatt
Copy link

Thanks a ton for this guide. Also add this to the top to get a nice thin top profile without the close buttons wasting all those pixels where the tabs were.

#TabsToolbar { visibility: collapse !important; }

The spacers between the address bar will work as a dragable area if you aren't already using a window manager like rectangle app.

Screen Shot 2022-12-18 at 10 52 51 PM

@slava-nat
Copy link

Great! Thank you.

@Maverick-117
Copy link

This doesn't seem to work for me on Windows 11.

@slava-nat
Copy link

slava-nat commented Mar 2, 2023

This doesn't seem to work for me on Windows 11.

Try this modified guide by @80ROkWOC4j for Windows:

https://gist.github.com/80ROkWOC4j/98108d2ea5af58159136b264d41c258c

@MonkadelicD
Copy link

This is still working. I just had to do this for my new work laptop. Thanks @ruanbekker !!

@DanHazard
Copy link

Maybe I'm slow, but I'm struggling with this on windows because the instructions mention to make a file but you can't have / in the name. so I assume it's make a folder titled chrome with the file userChrome.css inside, but it's not working?

@icecreammatt
Copy link

icecreammatt commented Oct 24, 2024

The / is the folder path. It’s chrome / userChrome.

Firefox has native side tab support now though! It’s in the about:config options. It doesn’t support the nice tree views but if you want basic stuff it’s easy to enable now without the plugin.

about:config search side tabs I forget exact name I’ll update this later with it.

Click on the "toggle" button with two opposite arrows for the sidebar.revamp and sidebar.verticalTabs to set both to true.

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