X
Tap here to go to the mobile version of the site.

Support Forum

I use the "Mute Tab" extension to mute all new tabs by default, but the mute icon is annoyingly visible. Can I add a style to make it transparent?

Posted

I know there must be some userChrome.css stuff and a way to modify the icon but I can't find any resource about how to do that.

I know there must be some userChrome.css stuff and a way to modify the icon but I can't find any resource about how to do that.
Attached screenshots
Quote

Additional System Details

Installed Plug-ins

Mute Tab

Application

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:73.0) Gecko/20100101 Firefox/73.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17860 solutions 161617 answers

You can set the opacity to '0' or to a low value like '.1' to make you aware of its presence.

This is the full selector currently used with opacity: .8

Add code to the userChrome.css file below the default @namespace line.


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

.tab-icon-sound[pictureinpicture]:not(:hover), .tab-icon-sound[soundplaying]:not(:hover), .tab-icon-sound[muted]:not(:hover), .tab-icon-sound[activemedia-blocked]:not(:hover) {
 opacity: 0 !important;
}
You can set the opacity to '0' or to a low value like '.1' to make you aware of its presence. This is the full selector currently used with opacity: .8 *https://dxr.mozilla.org/mozilla-release/source/browser/themes/shared/tabs.inc.css#427 Add code to the <b>userChrome.css</b> file below the default @namespace line. <hr> <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ .tab-icon-sound[pictureinpicture]:not(:hover), .tab-icon-sound[soundplaying]:not(:hover), .tab-icon-sound[muted]:not(:hover), .tab-icon-sound[activemedia-blocked]:not(:hover) { opacity: 0 !important; } </nowiki></pre>
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.