irvinm / Toggle-Native-Tab-Bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI/CD Mozilla Add-on

How to use Toggle Native Tab Bar

Demo

Here are some instructions on how to use this extension...

(REQUIRED) Enabling userChrome.css (Skip this section if you already use userChrome.css)

  • First, go to "about:config" and set "toolkit.legacyUserProfileCustomizations.stylesheets = TRUE" to enable userChrome.css usage
  • Next, go to "about:profiles" and look for the profile that says "This is the profile in use and it cannot be deleted"
  • On the row for "Root Directory", click on "Open Folder" to open the profile folder in your file manager
  • Inside the profile folder, create a new folder called "chrome" if it doesn't exist
  • Inside the "chrome" folder, create a new file called "userChrome.css" if it doesn't exist
    • Make sure you do not create the file as userChrome.css.txt

(REQUIRED) Entering CSS to hide or show the native tab bar into userChrome.css

  • Add the following text to your userChrome.css file:
#main-window #titlebar { overflow: hidden; transition: height 0.3s 0.3s !important; }

/* Hidden state: Hide native tabs strip */
#main-window[titlepreface*=" "] #titlebar { height: 0 !important; }

/* Hidden state: Fix z-index of active pinned tabs */ 
#main-window[titlepreface*=" "] #tabbrowser-tabs { z-index: 0 !important; }

(INFO) Here are some items to be aware of ...

  • The addon icon will change based on if the tabs should be displayed or not

    • Visible Icon -- This is what the addon icon will look like when the tabs should be displayed
    • Hidden Icon -- This is what the addon icon will look like when the tabs should be hidden
  • When the native tabs are hidden, you do not have direct access to the minimize\maximize\close buttons. Workarounds include:

  • When the native tabs are hidden, you do not have direct access to Firefox's menu.

    • Firefox Meny -- This is the native Firefox menu
    • Use this addon to show the native tab bar again, then press "ALT" to get access to Firefox's menu
  • The idea for this addon was inspired Sidebery's feature: Dynamic native tabs

  • Atribution for base addon icon that I modified for this usage

About

License:MIT License


Languages

Language:HTML 77.5%Language:JavaScript 15.3%Language:Batchfile 3.1%Language:Makefile 2.7%Language:CSS 1.4%