Last active
March 12, 2020 11:02
-
-
Save mason276752/711d80c8d4bfea6cdc01d47a9249f02c to your computer and use it in GitHub Desktop.
youtube ab loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:aloop=document.getElementsByClassName('video-stream html5-main-video')[0].currentTime;if(aloop!=null &&bloop!=null){if(aloop!="undefined" && bloop!="undefined" && aloop!=bloop ){document.getElementsByClassName('video-stream html5-main-video')[0].addEventListener("timeupdate",function(){if(aloop>bloop&&document.getElementsByClassName('video-stream html5-main-video')[0].currentTime>aloop){document.getElementsByClassName('video-stream html5-main-video')[0].currentTime=bloop;}else if(bloop>aloop&&document.getElementsByClassName('video-stream html5-main-video')[0].currentTime>bloop){document.getElementsByClassName('video-stream html5-main-video')[0].currentTime=aloop;}},false);}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:bloop=document.getElementsByClassName('video-stream html5-main-video')[0].currentTime;if(aloop!=null &&bloop!=null){if(aloop!="undefined" && bloop!="undefined" && aloop!=bloop ){document.getElementsByClassName('video-stream html5-main-video')[0].addEventListener("timeupdate",function(){if(aloop>bloop&&document.getElementsByClassName('video-stream html5-main-video')[0].currentTime>aloop){document.getElementsByClassName('video-stream html5-main-video')[0].currentTime=bloop;}else if(bloop>aloop&&document.getElementsByClassName('video-stream html5-main-video')[0].currentTime>bloop){document.getElementsByClassName('video-stream html5-main-video')[0].currentTime=aloop;}},false);}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment