Created
October 8, 2018 20:43
-
-
Save sakex/91cef36969c3ab816973310aa2ab9fee to your computer and use it in GitHub Desktop.
Play Netflix at the end of the minute to watch live with a friend
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
const play = () => { | |
document.querySelector('video').play(); | |
}; | |
const launch = () => { | |
const now = new Date(), | |
delay = 60000 - now % 60000; | |
setTimeout(play, delay); | |
} | |
launch(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment