Tab Audio Indicators
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Tab Audio Indicators
Back during one of the times I switched from Chrome back to Firefox, one thing that I immediately missed was the tab audio indicators. Searching for a Firefox solution, I found only the article stating its dependance on Chrome's own flash implementation:
http://www.ghacks.net/2014/01/15/main-r ... s-firefox/
Very recently though, I've seen a new one stating that Firefox is working on the feature and might have some progress very soon:
http://venturebeat.com/2015/07/24/firef ... mute-them/
Surprisingly, instead of following Chrome's method it was stated in the Bugzilla entry comments that Flash 18 actually makes this possible for flash now, instead of just HTML5 and Shumway. This means it should be possible for Pale Moon as well.
The only plugin I found for HTML5 audio indicators isn't compatible with Pale Moon. This is a sorely missed feature from my Chrome days to track down intrusive ads and quickly re-find video tabs amongst many, and shouldn't be a pro for Firefox over Pale Moon. Unfortunately its likely that Mozilla's implementation could be tied into e10s. Would Pale Moon be able to implement flash audio indicators or consider at least HTML5 audio indicators?
http://www.ghacks.net/2014/01/15/main-r ... s-firefox/
Very recently though, I've seen a new one stating that Firefox is working on the feature and might have some progress very soon:
http://venturebeat.com/2015/07/24/firef ... mute-them/
Surprisingly, instead of following Chrome's method it was stated in the Bugzilla entry comments that Flash 18 actually makes this possible for flash now, instead of just HTML5 and Shumway. This means it should be possible for Pale Moon as well.
The only plugin I found for HTML5 audio indicators isn't compatible with Pale Moon. This is a sorely missed feature from my Chrome days to track down intrusive ads and quickly re-find video tabs amongst many, and shouldn't be a pro for Firefox over Pale Moon. Unfortunately its likely that Mozilla's implementation could be tied into e10s. Would Pale Moon be able to implement flash audio indicators or consider at least HTML5 audio indicators?
Re: Tab Audio Indicators
It shouldn't be too hard to convert this add-on to a Pale Moon compatible one.
The core function is:
Meaning it checks for <audio> and <video> elements on the page, and checks if they have certain parameters (playing, not muted, volume not 0) if found. if so, it's flagged as "has noise" and adds an indicator. Mozilla's approach to this feature request is terrible and absolutely unportable to Pale Moon.
The core function is:
Code: Select all
function checkNoise() {
let hasNoise = Array.some(
document.querySelectorAll("audio, video"),
v => !v.paused && v.mozHasAudio && !v.muted && v.volume
);
self.port.emit("hasNoise", hasNoise);
}
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Tab Audio Indicators
Even if this cover obviously only html5 audio ; this way to answer the request looks simple & efficient. A port as a PM-compatible add-on would be good, but may we expect in the future that this will make its way into the core ? (With I guess a config option or two)
-
- Fanatic
- Posts: 104
- Joined: 2013-06-06, 01:29
Re: Tab Audio Indicators
If possible I think we should consider make this feature a built-in feature, knowing which tab is making noisy will help user alot, there is websites that use some adult sound, and those sound will give us trouble if our mother/father/daughter hear those. At least we can react faster and shut it up.
An example: http://comic.naver.com/webtoon/detail.n ... eekday=tue
An example: http://comic.naver.com/webtoon/detail.n ... eekday=tue
Re: Tab Audio Indicators
Yes I agree, this would be a very useful feature to implement into Pale Moon! Maybe an automatic pause/stop function when other media/audio is playing at the same time. For instance, when I have Pandora playing on my Android and have a YouTube video that I want view, my Android automatically pauses Pandora and then stats playing YouTube, visa versa. It does the same with adds that starts up playing media/audio.
EDIT:This should be an add-on because this already accessible in about:config, and it's called media.autoplay.enabled. No need for extra functionality when media.autoplay.enabled hits two birds with one stone.
EDIT:This should be an add-on because this already accessible in about:config, and it's called media.autoplay.enabled. No need for extra functionality when media.autoplay.enabled hits two birds with one stone.
Last edited by LimboSlam on 2015-11-30, 06:08, edited 2 times in total.
With Pale Moon by my side, surfing the web is quite enjoyable and takes my headaches away!
God is not punishing you, He is preparing you. Trust His plan, not your pain. #TrentShelton #RehabTime
God is not punishing you, He is preparing you. Trust His plan, not your pain. #TrentShelton #RehabTime
Re: Tab Audio Indicators
Sorry to bump the thread but Firefox Nightly has this now, I don't know which version it was implemented but it's worth taking a look at.
-
- Fanatic
- Posts: 104
- Joined: 2013-06-06, 01:29
Re: Tab Audio Indicators
It is very easy to have this feature ? Can you write Userscript ?
We can simply write a very very simple script that check if a page contains video/audio/object/embed tag, if condition met that script will write a button into the webpage and we can use that button to turn on/off audio. the easiest way is just remove the whole video/audio/object/embed tag. That is my idea.
We can simply write a very very simple script that check if a page contains video/audio/object/embed tag, if condition met that script will write a button into the webpage and we can use that button to turn on/off audio. the easiest way is just remove the whole video/audio/object/embed tag. That is my idea.
Re: Tab Audio Indicators
You can have this feature with Noscript, setting it to accept scripts globally and putting restrictions on embeddings on whitelisted sites, and selecting Forbid audio/video in the embeddings tab. For websites for which you want that these media should be automatically allowed, you can set *@<regex_matching_hostname> in noscript.allowedMimeRegexp.
Re: Tab Audio Indicators
Hi everyone,
I just switched from Firefox to Pale Moon and so far, it's a blast. Let me ressurect this older thread - I seem to miss just one thing, but I miss it hard - audio tab indicator. Is there any chance Pale Moon will include this feature in the (near) future? Not that I'll go back to Firefox, but this is a huge inconvenience and I'd be very happy about this function in PM.
Thanks very much!
I just switched from Firefox to Pale Moon and so far, it's a blast. Let me ressurect this older thread - I seem to miss just one thing, but I miss it hard - audio tab indicator. Is there any chance Pale Moon will include this feature in the (near) future? Not that I'll go back to Firefox, but this is a huge inconvenience and I'd be very happy about this function in PM.
Thanks very much!
Re: Tab Audio Indicators
This seems like a neat feature to be added, but it really should be add-on. Why? Well because this is already accessible in about:config, and it's called media.autoplay.enabled. No need for extra functionality when media.autoplay.enabled (toggle to false to take effect) hits two birds with one stone, right.
With Pale Moon by my side, surfing the web is quite enjoyable and takes my headaches away!
God is not punishing you, He is preparing you. Trust His plan, not your pain. #TrentShelton #RehabTime
God is not punishing you, He is preparing you. Trust His plan, not your pain. #TrentShelton #RehabTime
Re: Tab Audio Indicators
This setting is not related to the request. The request is for indicators, which that setting does not give, and the indicators should be present for playing media, regardless of whether it was activated by the user or not (e.g. many different media tabs among many more tabs, with an indicator making it easy to return to the media tab that is currently playing).LimboSlam wrote:Well because this is already accessible in about:config, and it's called media.autoplay.enabled.
I very badly miss the indicators, but I for sure do not want to disable the autoplay of media.
Re: Tab Audio Indicators
I'm also interested to this, I've read the FF Bugzilla and I don't really understand how to find the pushes associated to this bugzilla thread...
Re: Tab Audio Indicators
It currently doesn't have priority, but if anyone feels an itch to work on this and contribute, it'll be more than welcome!Weishaupt wrote:Any change of us getting that nice feature anytime soon?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Tab Audio Indicators
Since it isn't being worked on, I might as well share a greasemonkey script to add audio indicator functionality that I made a while ago.
This is something that SHOULD be an extension, but I don't know anything about writing extensions for Pale Moon or see easy access resources for it. As such you can't use it to mute tabs, and you are stuck with a silly unicode music note as the indicator. If someone wants to use my quickly-written code in making an extension, they are more than welcome.
https://gist.github.com/adisib/6b0eac4e ... 60d9d8edc7
This is something that SHOULD be an extension, but I don't know anything about writing extensions for Pale Moon or see easy access resources for it. As such you can't use it to mute tabs, and you are stuck with a silly unicode music note as the indicator. If someone wants to use my quickly-written code in making an extension, they are more than welcome.
https://gist.github.com/adisib/6b0eac4e ... 60d9d8edc7
Re: Tab Audio Indicators
Thanks for sharing! It does work on many sites. Does nothing on Youtube, Soundcloud, Yandex music etc... Is that because some sites announce their media content in the page code in a special way? Or HTML5 <> Flash?adisib wrote:Since it isn't being worked on, I might as well share a greasemonkey script to add audio indicator functionality that I made a while ago.
This is something that SHOULD be an extension, but I don't know anything about writing extensions for Pale Moon or see easy access resources for it. As such you can't use it to mute tabs, and you are stuck with a silly unicode music note as the indicator. If someone wants to use my quickly-written code in making an extension, they are more than welcome.
https://gist.github.com/adisib/6b0eac4e ... 60d9d8edc7
Pale Moon 32-bit on Win 7 x64
Re: Tab Audio Indicators
It works perfectly on youtube for me. It only works with HTML5 elements. It does NOT work for Flash. If you are using Flash on youtube, it wont work._yuyu_ wrote: Thanks for sharing! It does work on many sites. Does nothing on Youtube, Soundcloud, Yandex music etc... Is that because some sites announce their media content in the page code in a special way? Or HTML5 <> Flash?
Re: Tab Audio Indicators
FTR: something like this can, by its very nature, only work on html5 audio/media -- the browser simply cannot know that a plugin does with its own code talking to the OS's audio subsystems.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite