Giter Site home page Giter Site logo

tkapias / container-tabs-sidebar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maciekmm/container-tabs-sidebar

0.0 0.0 0.0 663 KB

Firefox addon aiming to utilize screen estate more efficiently by showing tabs in a sidebar grouped by privacy containers. Inspired by TreeStyleTab.

Home Page: https://addons.mozilla.org/en-US/firefox/addon/container-tabs-sidebar/

License: Mozilla Public License 2.0

JavaScript 77.69% HTML 10.13% CSS 12.18%

container-tabs-sidebar's Introduction

Container Tabs Sidebar

A firefox addon that shows currently opened tabs in a sidebar grouped by a privacy container.

Promotional screenshot

How to use

In order to use this addon it's recommended to have firefox version >=59 installed. It might work with a version as low as 54, but there were no tests done with these builds. You can download the latest firefox from firefox.com

Installing from addons.mozilla.org

  1. Visit Container Tabs Sidebar on mozilla.org
  2. Click Add to Firefox button

Manually installing the addon for development purposes

Debugging via npm:

  1. If you have npm installed, you can execute the following command: npm run dev. A Firefox window should open.

Installing as temporary add-on

  1. Clone or download a zip of this repository.
  2. Navigate to about:debugging.
  3. Click Load Temporary Add-on.
  4. Select manifest.json inside src directory.

Opening the sidebar

In order to open the sidebar click F2 button on your keyboard. If it doesn't work then open any sidebar (eg. using Ctrl+b), and change the sidebar via dropdown menu.

Customizing containers

In order to add/remove containers navigate to about:preferences#containers.

Appearance modifications

Summary of How to Create a userChrome.css File on userchrome.org

  1. Create a file called 'userChrome.css' in a directory called 'chrome' inside your user profile directory
  2. Add the below data to the file

Warning: Starting with Firefox 69 you have to enable toolkit.legacyUserProfileCustomizations.stylesheets in about:config in order to use modifications listed below.

Note: For Firefox <72 you also need a @namespace directive at the beginning of the file.

Note: the @namespace directive only has to appear once in that file.

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

See this discussion thread for details.

Hiding the Sidebar Header

In order to hide the sidebar header you need to append to the userChrome.css file the following code:

#sidebar-box[sidebarcommand^="containertabs"] #sidebar-header {
	display: none;
}
Before After
Before hiding After hiding

Hiding the Tab Bar

In order to hide the Tab Bar you need to append to the userChrome.css the following code:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
    visibility: collapse !important;
}
/* for Firefox 72 and beyond */
/* credit to stapuft at https://github.com/piroor/treestyletab/issues/2207#issuecomment-478288590 */

#tabbrowser-tabs {
  visibility: collapse !important;
}

Change Icon into Black from White

This userChrome.css rule will make the icon become black on Toolbar, Sidebar, and Pop up menu

Black Icon for white Template

#sidebar-box[sidebarcommand^="containertabs"] #sidebar-header #sidebar-icon,
#sidebarMenu-popup #button_containertabssidebar_maciekmm_net-sidebar-action .toolbarbutton-icon,
#nav-bar-customization-target #containertabssidebar_maciekmm_net-browser-action .toolbarbutton-icon {
  filter: invert(100%);
}

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.