Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Icon
Mozilla Add-on Users Mozilla Add-on Rating Mozilla Add-on Sponsors WXT

Adaptive Tab Bar Colour

Changes the colour of Firefox theme to match the website’s appearance.


What Does the Add-on Do?

This add-on dynamically adjusts the Firefox theme to match the appearance of the website you are viewing, similar to the tab bar tinting feature in Safari on macOS.


Works Well With


Incompatible With


Removing the Shadow at the Bottom of the Toolbar

To remove the thin shadow cast by web content onto the browser toolbar, navigate to Settings (about:preferences) and disable “Show sidebar” in the “Browser Layout” section. Alternatively, add the following code to your CSS theme:

#tabbrowser-tabbox, .browserContainer { box-shadow: none !important; }
How to apply custom CSS
  1. Type about:config in the address bar and press Enter.
  2. Search for toolkit.legacyUserProfileCustomizations.stylesheets and set it to true.
  3. Type about:support in the address bar.
  4. Find “Profile Folder” and click the “Show in Finder” (macOS) or “Open Folder” (Windows/Linux) button.
  5. Create a new folder named chrome in your profile directory.
  6. Inside the chrome folder, create a text file named userChrome.css.
  7. Paste the code above into userChrome.css and save the file.
  8. Restart Firefox.

Customising Colour Transitions

Due to technical limitations, smooth colour transitions for the tab bar are not natively supported. However, you can enable this effect by adding the following code to your CSS theme (thanks to @Moarram):

#navigator-toolbox, #TabsToolbar, #nav-bar, #PersonalToolbar, #sidebar-box, .tab-background, .urlbar-background, findbar { transition: background-color 0.5s cubic-bezier(0, 0, 0, 1), border-color 0.5s cubic-bezier(0, 0, 0, 1) !important; }

To enable smooth colour transitions in the Sidebery UI, add the following code to the Sidebery Style Editor (thanks to @MaxHasBeenUsed):

.Sidebar, .bottom-space { transition: background-color 0.5s cubic-bezier(0, 0, 0, 1) !important; }

Alternatively, if you wish to remove Firefox’s built-in colour transition on the toolbar for an instant colour change, add the following code to your CSS theme:

:root { --ext-theme-background-transition: none !important; }
How to apply custom CSS
  1. Type about:config in the address bar and press Enter.
  2. Search for toolkit.legacyUserProfileCustomizations.stylesheets and set it to true.
  3. Type about:support in the address bar.
  4. Find “Profile Folder” and click the “Show in Finder” (macOS) or “Open Folder” (Windows/Linux) button.
  5. Create a new folder named chrome in your profile directory.
  6. Inside the chrome folder, create a text file named userChrome.css.
  7. Paste the code above into userChrome.css and save the file.
  8. Restart Firefox.

Compatibility with Third-Party CSS Themes

A third-party CSS theme works with Adaptive Tab Bar Colour (ATBC), as long as they use Firefox’s standard colour variables (e.g. --lwt-accent-color for the tab bar colour). This is an example of an ATBC-compatible CSS theme.


Title Bar Buttons on Linux with GTK Theme

Firefox’s title bar buttons may revert to the Windows style. To prevent this, access “Advanced Preferences” (about:config) and set widget.gtk.non-native-titlebar-buttons.enabled to false. (Thanks to @anselstetter)


Safety Reminder

Beware of malicious web UIs. It is important to distinguish between the browser UI and the web UI. For further information, please refer to The Line of Death. (Thanks to u/KazaHesto)

关于 About

Changes the colour of Firefox theme to match the website’s appearance.
firefoxfirefox-addon

语言 Languages

TypeScript85.3%
CSS14.2%
HTML0.5%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
190
Total Commits
峰值: 18次/周
Less
More

核心贡献者 Contributors