![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
How to ALWAYS SHOW Sound Icon in tabs? (77.0.1 (64-bit))
How can I always-show the Sound Icon that appears in tabs? The default behavior is -> "if sound then show icon, if silence then hide icon". Desired behavior is -> "always show icon". Or even, "always allow mute with unMute".
Why? Because the "unMute" addon I use can't mute unless sound is detected and/or the icon is showing.
Open to any viable solution, css or otherwise.
thnx ahead of time.
cheers!
Solusi terpilih
Try to add an opacity:1 rule.
/* TAB: sound icon always visible */ .tab-icon-sound {list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-playing.svg) !important; display:unset !important; opacity:1 !important} .tab-icon-sound[muted] {list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-muted.svg) !important;}
Search for .tab-icon-sound to see what rules are being applied.
Baca jawaban ini dalam konteks 👍 0Semua Balasan (11)
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: sound icon always visible */ .tab-icon-sound {list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-playing.svg) !important; display:unset !important} .tab-icon-sound[muted] {list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-muted.svg) !important;}
It is not that difficult to create userChrome.css if you have never used it.
The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.
You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a plain text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted. On Mac you can use the TextEdit utility to create the userChrome.css file as a plain text file.
In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userChrome.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".
You need to close (Quit/Exit) and restart Firefox when you create or modify the userChrome.css file.
See also:
- https://www.userchrome.org/what-is-userchrome-css.html
- https://www.userchrome.org/how-create-userchrome-css.html
In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.
- toolkit.legacyUserProfileCustomizations.stylesheets = true
See:
This solution by "cor-el" is 90% there, and if there's no other solution I will mark it solved.
My desired solution : "always show sound icons on all tabs all the time" (even when loading non-sound pages)
This solution : always show sound icons on tabs once sound it is detected, yet remove sound icon when the tab changes pages?
Again, very close to solved.
Thanks to you "cor-el"!!!
Solusi Terpilih
Try to add an opacity:1 rule.
/* TAB: sound icon always visible */ .tab-icon-sound {list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-playing.svg) !important; display:unset !important; opacity:1 !important} .tab-icon-sound[muted] {list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-muted.svg) !important;}
Search for .tab-icon-sound to see what rules are being applied.
If it still doesn't work then the extension might be overriding these CSS rules.
All extensions disabled.
My userChrome css looks like your suggestion (and w/ your suggested modifications).
Restarted firefox. Same result as before. That is, sound icons only appear on tabs that detect sound. Restarted in safemode. Same result as before.
Different result for you? Perhaps I'm doing something wrong?
Did you had to create a userChrome.css file or were you already using it ?
Did you make sure the file is a CSS file and not a text file with a hidden .txt file extension appended ?
Can you attach screenshots that show the file path and the userChrome.css content ?
The result should be like this.
Diperbarui oleh cor-el pada
Had to create userChrome. No hidden "txt" extension.
attached, please see both the path and the userChrome css
This behavior just happened (with extensions re-enabled): -> "Shows Sound Icons on all tabs, yet unMute doesn't work to mute tabs when unmuted, yet allows to unmute when muted". This behavior only happened once, and does not repeat.
Diperbarui oleh cancerusthree pada
That seems to be OK.
Did you also check that you do not have a double .css file extension (userChrome.css.css) ?
Alright, I figured out my error. When you suggested "Try to add an opacity:1 rule." initially it lacked the !important, yet for the one time it worked I had used the !important. All the others I was using it without the !important.
Anyway, past that now.
I located another error I believe, within the addon itself. (basically it is checking for an audible flag to change the state.) But, that is beyond this discussion. Your solution works great.
Thank you for your help, and thank you for your patience!
anyone looking to disable the auto-hide feature of the Sound Icon within firefox, this is it.
Diperbarui oleh cancerusthree pada
What mute extension is this about ?
it was about an extension called "unMute", but now I'm using "AutoMute" (by danBhentschel).
AutoMute allows hotkey toggles for mute, and it mutes every new tab. So I have ctrl-q bound to toggle mute/sound.
Suffice to say, your solution works great with AutoMute.