Skip to content

Instantly share code, notes, and snippets.

@collinbarrett
Last active April 11, 2024 10:22
Show Gist options
  • Save collinbarrett/45c90f7d427e08d69d32dfef402c86f6 to your computer and use it in GitHub Desktop.
Save collinbarrett/45c90f7d427e08d69d32dfef402c86f6 to your computer and use it in GitHub Desktop.
A userChrome.css to use with Tree Style Tab (https://github.com/piroor/treestyletab) for Firefox
/*
Windows
Location: C:\Users\<YourUsername>\AppData\Roaming\Mozilla\Firefox\Profiles\<YourFirefoxProfile>\chrome
Notes:
If minimize, maximize, and close buttons are no longer visible, enable the Title Bar or Menu Bar in Firefox Customize.
macOS
Location: /Users/<YourUsername>/Library/Application Support/Firefox/Profiles/<YourFirefoxProfile>/chrome
Notes:
If minimize, maximize, and close buttons overlap other controls, add the Flexible Space in Firefox Customize.
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* Hide horizontal tab toolbar */
#TabsToolbar {
visibility:collapse!important;
}
/* Hide "Tree Style Tabs" sidebar header */
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
display:none;
}
@collinbarrett
Copy link
Author

Solves issues discussed in piroor/treestyletab#1349 and piroor/treestyletab#1525.

@collinbarrett
Copy link
Author

@AaronDMarasco-VSI
Copy link

Linux users (usually): /home/<YourUserName>/.mozilla/firefox/<YourFirefoxProfile>/chrome/

@exadeci
Copy link

exadeci commented Sep 12, 2019

about:profiles then show in finder the root folder

Also in Firefox 69+ go to about:config and set toolkit.legacyUserProfileCustomizations.stylesheets to true

@phiresky
Copy link

phiresky commented Dec 7, 2021

On new firefox, you need to remove the first @namespace line, otherwise it will not work. See also https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#for-userchromecss

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