Coder Social home page Coder Social logo

toggle-native-tab-bar's Introduction

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

toggle-native-tab-bar's People

Contributors

irvinm avatar

Watchers

 avatar

toggle-native-tab-bar's Issues

Dragging tab to a new window always shows tabs in the new window

  • ISSUE: If you are in a window that has the native tab bar hidden and (a) drag one of the TST tabs outside the window to open a new window or (b) use CTRL+N to open a new window ... the resulting window will show the native tab bar.
  • WORKAROUND: Toggle the addon button once to show the tab bar, then again to hide it.
  • I will continue to see if there is anything I can do to remediate this situation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.