Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9843

How to detect if a YouTube video is being looped for a TamperMonkey script

$
0
0

I've been looking for a way to work around YouTube's annoying insistence on autoplaying playlists for awhile now, combing through Firefox addons to no avail. The closest solution I've found is this short script posted by user johan -- How to disable auto-play in YouTube playlists -- which automatically pauses every video at the last second, preventing any further videos from playing. This is fine enough most of the time, but it does have the side-effect of preventing looping.

I would like to create a variation of this script which checks that the loop button isn't active before proceeding. My hope is that I could encapsulate the other If Statement with something like:

if([variable for looping video] == false){

but I don't know how to find the video-looping variable.


Viewing all articles
Browse latest Browse all 9843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>