cyfung1031 / userscript-supports

This is for the userscripts created on GreasyFork.org.
https://cyfung1031.github.io/userscript-supports/
MIT License
48 stars 3 forks source link

Feature request: disable auto-pause on music.youtube.com #7

Closed maye9999 closed 1 year ago

maye9999 commented 1 year ago

Hi, I found that auto-pause on music.youtube.com could be annoying. Could you please support the disable auto-pause feature on that domain? Simply adding the domain to this plugin's support list doesn't work. Maybe they are using different mechanisms? Thanks in advance.

cyfung1031 commented 1 year ago

Can you told me how to reproduce the music automatic pause? Just open the browser and play for few hours? Or the browser window has to be minimized?

Tell me all the relevant scenarios that it might pause.

I am not sure I can make such userscript or not, coz I did not experience that before in YouTube Music.

maye9999 commented 1 year ago

Can you told me how to reproduce the music automatic pause? Just open the browser and play for few hours? Or the browser window has to be minimized?

Tell me all the relevant scenarios that it might pause.

I am not sure I can make such userscript or not, coz I did not experience that before in YouTube Music.

Hi, you could just play it in one tab and continue doing your jobs in other tabs. Sometimes it just pauses. I don't know the specific mechanism of it

cyfung1031 commented 1 year ago

I have created the YouTube Music version.

https://greasyfork.org/en/scripts/464888-disable-youtube-music-autopause

If it works for you, please close this issue thanks.

~Remarks: Currently the "Still watching? Video will pause soon [Yes]" will be still shown after a while of idle, but the code will make that "soon" become few thousands of years, so it will not pause. You can still listen without pause. Might or might not change this in future.~ [Fixed]

maye9999 commented 1 year ago

Great thanks! I'll reopen this issue if not working.