Skip to content

Instantly share code, notes, and snippets.

@alexandru
Last active June 30, 2022 14:33
Show Gist options
  • Save alexandru/0f8b9a845342dd919d48dccc844a7135 to your computer and use it in GitHub Desktop.
Save alexandru/0f8b9a845342dd919d48dccc844a7135 to your computer and use it in GitHub Desktop.

Tree Style Tab

Firefox Add-on: https://addons.mozilla.org/en-US/firefox/addon/tree-style-tab/

For getting rid of the horizontal tab bar to save vertical space and reduce confusion, edit userChrome.css to add this:

/* Hide tab bar in FF Quantum */
@-moz-document url("chrome://browser/content/browser.xul") {
  #TabsToolbar {
    visibility: collapse !important;
    margin-bottom: 21px !important;
  }

  #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
    visibility: collapse !important;
  }
}

To find your userChrome.css file:

  1. Go to Help -> Troubleshooting Information (this should open about:support in a new tab)
  2. Find the entry "Profile folder" and copy the path or click on "Show"
  3. Open the chrome sub-folder or create it if missing
  4. Open the file userChrome.css or create it if missing

Credits: https://news.ycombinator.com/item?id=18836967

Pro-tips

  • use F1 to show/hide the tree-style sidebar
    • the shortcut can be configured in the extension's preferences, I've set mine to Cmd+Shift+O
  • add % in front of queries in the address bar (Awesome Bar) to search your tabs, see help page
@prncevince
Copy link

@ajrc0re same this broke for me today when Tree Style Tab came out with an update I guess?!?
@alexandru I'm using Firefox 65.0.1 on MacOS with Tree Style Tab 2.7.21 ... automatic updates are turned on.
@SurfaceThought that's how it used to look for me. Was perfectly fine with it.

Any ideas on a fix?

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