Created
March 21, 2025 04:30
-
-
Save coverprice/33f1cecb1ee9d16f94914edd5a6bfb8e to your computer and use it in GitHub Desktop.
userChrome.css for Firefox to disable mute and play buttons in tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Hide the mute/unmute button */ | |
.tab-icon-overlay:not([pinned], [sharing], [crashed]):is([soundplaying], [muted], [activemedia-blocked]) { | |
display: none !important; | |
} | |
/* Keep site icon visible on hover */ | |
.tabbrowser-tab:hover .tab-icon-stack:not([pinned], [sharing], [crashed]):is([soundplaying], [muted], [activemedia-blocked]) > :not(.tab-icon-overlay), | |
/* for site icon with Compact density */ | |
:root[uidensity="compact"] .tab-icon-stack:not([pinned], [sharing], [crashed]):is([soundplaying], [muted], [activemedia-blocked]) > :not(.tab-icon-overlay) { | |
opacity: 1 !important; /* overrides full transparency with full opacity */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment