Skip to content

Instantly share code, notes, and snippets.

@Xananax
Last active July 15, 2024 09:53
Show Gist options
  • Save Xananax/10bd29a8d95911542eea8a73411b4ee8 to your computer and use it in GitHub Desktop.
Save Xananax/10bd29a8d95911542eea8a73411b4ee8 to your computer and use it in GitHub Desktop.
Hide firefox top toolbar
/**
* Put in your profile directory
* Which you can find through `help > more troubleshooting information` then clicking "Open profile"
* create a directory "chrome", then a file "userChrome.css", and paste the below.
* You'll also need to go to `about:config` and set `toolkit.legacyUserProfileCustomizations.stylesheets` to `true`
**/
/** hide actual tabs **/
#TabsToolbar > .toolbar-items {
display: none;
}
/** hide spacer **/
#TabsToolbar > .titlebar-spacer {
display: none
}
/** The minimize, maximize, close buttons **/
#TabsToolbar > .titlebar-buttonbox-container {
position: absolute;
right: 0;
top: 0;
min-height: var(--tab-min-height);
}
/* leaves space for the window buttons, we're assuming they're 22px in width */
#nav-bar {
margin-right: calc(22px * 4.5);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment