Skip to content

Instantly share code, notes, and snippets.

@coverprice
Created March 21, 2025 04:30
Show Gist options
  • Save coverprice/33f1cecb1ee9d16f94914edd5a6bfb8e to your computer and use it in GitHub Desktop.
Save coverprice/33f1cecb1ee9d16f94914edd5a6bfb8e to your computer and use it in GitHub Desktop.
userChrome.css for Firefox to disable mute and play buttons in tabs
/* 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