Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to hide native tab bars #5

Open
asamuzaK opened this issue Jul 27, 2017 · 3 comments
Open

Add ability to hide native tab bars #5

asamuzaK opened this issue Jul 27, 2017 · 3 comments

Comments

@asamuzaK
Copy link
Owner

Depends on 1332447 - WebExtension API to hide the tabstrip

@MasterKia
Copy link
Contributor

MasterKia commented Jul 30, 2022

Hide the native tabs

For now, add-ons can't hide the native browser tabs due to lack of an API.

Enable Custom CSS

  1. Visit about:config and click Accept the risk and Continue.
  2. Search for toolkit.legacyUserProfileCustomizations.stylesheets.
  3. Toggle it, making the value "true".

Create userChrome.css

  1. Visit about:support.
  2. To the right of Profile Directory, press the button Open Directory.
  3. Create a new folder named chrome.
  4. Open the chrome folder and create a new file named userChrome.css.
  5. The contents of userChrome.css should be the following:
/* Hides the native tabs */
#TabsToolbar {
  visibility: collapse;
}

Restart the browser to see the changes.

More details: https://superuser.com/questions/1424478/can-i-hide-native-tabs-at-the-top-of-firefox

@asamuzaK asamuzaK pinned this issue Jul 30, 2022
@jyc
Copy link

jyc commented Jan 6, 2024

On macOS I've been hiding the tabs using this CSS:

#TabsToolbar .toolbar-items {
  display: none;
}

#titlebar {
  position: absolute;
  top: 12px;
}

#nav-bar {
  padding-top: 1px !important;
  padding-left: 66px !important;
}

the result looks like this:

image

Wrote some additional notes here in case it's helpful to anyone: https://www.jonathanychan.com/blog/hiding-the-titlebar-and-using-vertical-tabs-in-firefox-on-macos/

@omicronyang
Copy link

On Win11 I recommand this CSS:

#TabsToolbar {
  justify-content: flex-end;
}

#TabsToolbar .toolbar-items {
  display: none;
}

#TabsToolbar .titlebar-spacer {
  display: none;
}

#TabsToolbar .titlebar-buttonbox-container {
  min-height: 40px;
}

#titlebar {
  position: absolute;
  right: 0;
}

#nav-bar {
  padding-top: 1px !important;
  margin-right: 117px !important;
}

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

No branches or pull requests

4 participants