akavel's digital garden

“New Tab” as separator in Firefox

This makes an empty “New Tab” in Firefox work as a simple visual separator for tabs grouping. The following tweak styles the title of all New Tabs to a heavily faded out look.

Note: You will need to tweak the “New Tab” text appropriately if you’re using Firefox in a different language.

Based on:

1. Enable userChrome.css

In about:config, search for toolkit.legacyUserProfileCustomizations.stylesheets and toggle it to true by double-clicking it.

2. Find default profile directory path

Go to about:support, find and copy the path from ‘Profile folder’ (under ‘Application Basics’).

3. Create userChrome.css

  1. Open the Profile folder path (as copied in the step above), create sub-folder named chrome (must be lowercase!).

  2. In the chrome sub-folder, create file named userChrome.css.

  3. Add the following content to the userChrome.css file:

    tab[label="New Tab"]:not([selected="true"]):not(:hover) {
      opacity: 0.02;
    }
    #allTabsMenu-allTabsView .all-tabs-item:has(label[value="New Tab"]):not(:hover) {
      opacity: 0.05;
    }
    
  4. Restart Firefox (e.g. through about:restart).

Optionally, if you want to do some further tweaks, the easiest way to quickly test them is with: developer.mozilla.org/en-US/…/Browser_Toolbox

🌿 budding — contents of this article got classified among maturing works that I have spent considerable time and energy cultivating but have not finished. They are teenagers who have outgrown their seedling status and may someday grow into ripe.
© Mateusz Czapliński 🐘 Mastodon 🐙 GitHub 🎮 Itch.io ♟️ BGG 🧶 Ravelry