kurtextrem / StopAutoplay

Stop Autoplay for YouTube™ (Extended), a Google Chrome Extension.
https://chrome.google.com/webstore/detail/stop-autoplay-for-youtube/nilnpbhnhmmjioijfgilcohbknkgfmpa
26 stars 3 forks source link

Question about an opposite of StopAutoplay #7

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi. I was wondering, could you make an extension that would NeverStopAutoplay ? that is, sometimes when Autoplay is enabled(with that top right corner setting), and even if current tab is focused, the current video ends and it says "Autoplay is paused." waiting for user to click the big play button in the middle before the next video is played. (this is with html5 video, not Flash) This might be because youtube wrongly thinks the current tab isn't focused, or something along those lines, I believe.

An extension that would prevent that pause from ever happening would be quite useful(for me?). I would do it myself if I actually knew enough html/javascript/chrome-extension programming and wtw background is required for it. :D

But maybe if you don't want to create that yourself, you could find it in your heart to give me some pointers, as if I actually knew javascript/html etc. and i might figure something out from that.

Cheers!

PS: One can always cause "Autoplay is paused.", normally, when scrolling down past the video half-way: screenshot_2017-04-09_21-38-29

ghost commented 7 years ago

Ok, I think I figured something out and seems to be working so far, even though it might be messy: https://github.com/xftroxgpx/YouTube-Repeater/commit/4de76cad4b1ec9fa559d3ad537cf011a5fa633d2 https://github.com/xftroxgpx/YouTube-Repeater/commit/c2d91ae5f9f11b5e5ef9159e73c6c06eaea19a42 https://github.com/xftroxgpx/YouTube-Repeater/commit/3ee37d76e4cd3fbe21a0409d40eff24f760b920c

Basically auto loads the next video (if autoplay checkbox is true) as if user pressed the Next button(which is seen in the video UI) only when the current video ended.

I actually wouldn't have started this if I didn't create this issue here, so thank you! ;-) Cheers my friend!