Comments (19)
Finally! This has now been implemented 👯
from thegreatsuspender.
Available in the chrome webstore in v6.30
from thegreatsuspender.
This might become easier as chrome might be getting a related feature and hopefully API in the near future:
Google Chrome Getting Audio Indicators for Tabs Making Sound
from thegreatsuspender.
I think I might leave this one for now. Adding these sites to the whitelist should be a fairly decent workaround for now.
from thegreatsuspender.
The latest webstore version now has the ability to 'temporarily pause suspension' for a site. If you have a tab open that is playing music and you do not want it to suspend, you can use this option to prevent it from suspending in the background.
I will not be doing any work in future to try and automatically detect tabs that are producing audio.
from thegreatsuspender.
Just to reiterate as this is one of the more commonly requested features. Chrome does not provide developer access to its ability to detect which tab is playing music. Therefore I am unable to include an option to prevent these tabs from suspending.
As an alternative, I have implemented an option in the popup call 'dont suspend for now' which will prevent the current tab from suspending automatically in the background. This can be used to prevent tabs that are playing audio from suspending.
Another alternative is to whitelist the url of the site if you'd like it to always remain unsuspended.
from thegreatsuspender.
Would you consider reopening this ticket if Chrome were to provide the ability to easily detect which tabs were playing audio? Maybe if you got a pull request?
from thegreatsuspender.
Definitely. I would love to have a dedicated option 'dont suspend tabs that are playing audio'.
from thegreatsuspender.
The content script could look for audio
/video
tags and check !element.paused
. There could also be a catch-all setting for Flash/Silverlight as a hack (could still attempt to call !element.paused
since the site might be using something like MediaElement.js). If anyone's insane enough to use Java for playback, it appears there's a Java API to detect that too. I don't think it's worth supporting the JS audio API because this is typically used for notification sounds/game sound effects.
It's not a perfect way to do it but considering many major sites are using <audio>
/<video>
now it might be an acceptable compromise.
Worth also looking at the MuteTab extension's FAQ.
Willing to put in the work for this if you'd like it.
from thegreatsuspender.
@kirb i have checked out mutetab, and it left me with the impression that there's just too much hackery involved in getting this feature working. i could definitely do as you suggested and catch a large percentage of the use-cases, but i'm worried that it would appear to be a buggy feature as it would not work consistently.
You're welcome to have a crack at it, and if it seems to work fairly reliably then i'd consider including it.
from thegreatsuspender.
I think it would be acceptable if there was a "Do not suspend tabs that have audio or video" checkbox that simply checked if the page had any <audio>
or <video>
tags.
from thegreatsuspender.
I use theses websites to play music: SoundCloud, Mixcloud and YouTube.
from thegreatsuspender.
Requires a development of the tabs extensions to allow this. For more information, see here for the Chromium issue.
from thegreatsuspender.
I would like to see this soon. Its a great extension that deserves this.
Maybe add an "experimental-noted checkbox" which only checks for HTML5 <audio><video>
tags, using what @kirb suggested (on his comment on Jun 5).
from thegreatsuspender.
If i was to implement this (highly considering it), what websites specifically should I be targetting? It seems that the audio/video !paused should be fairly easy. but with some quick tests this won't work for soundcloud or spotify. Any broad strokes I can make to detect flash audio/video? What about soundcloud? And are there other popular sites that I should be testing for?
from thegreatsuspender.
In addition to the 3 aforementioned websites, I would add:
Beatport.com (you can listen for free music there; the shop has moved to pro.beatport.com)
Hearthis.at
Hypem.com
Official.fm
from thegreatsuspender.
The audible tab functionality has now been baked into Chrome 46. Specifically, you should be able to query tab.audible to return a boolean value of whether the tab has produced sound in the last couple of seconds.
More info on the API: https://developer.chrome.com/extensions/tabs
from thegreatsuspender.
When is it planned to push out this feature?
from thegreatsuspender.
Well now?
from thegreatsuspender.
Related Issues (20)
- sync tabs from browser to other browser using other extension HOT 1
- Small feature request: New Command: `Suspend all Tabs in the active Window` HOT 1
- Check to see if Suspending will kill video or audio casted to Chromecast
- Your Wiki may have been hacked HOT 2
- Hi! I need to change the configuration defaults programmatically in Raspberry Pi (Linux / Raspbian) as in Windows Group Policies. Is there a configuration file for this?
- Chrome closes all suspended tabs
- Bulk suspended tabs show ... chrome extension, instead of the tab name HOT 6
- TGS will be no longer work after January 2023 for MV2 deprecation
- The great suspender v.7.1.6 is not compatible with Chromium v.104.0.5112.81 HOT 3
- Marvelloous Suspender dosen't work after Chrome updates in August 2022 HOT 6
- No more favicon + no more page screenshot since Chrome update HOT 1
- Opening Incognito Mode While All Tabs in Closed Standard Window are Suspended Reopens Standard and Duplicates Tabs
- error
- Switching to manifest v3 HOT 4
- console.log in file contentscript.js HOT 2
- Extension was removed from chrome store (This extension contains malware) HOT 6
- If you ended up with broken tabs like me, I made a script to fix then!
- 101
- Extension disabled by Chrome today because suspected malware. Version 7.2.6 HOT 5
- White flash when Suspend/Unsuspend active tab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thegreatsuspender.