Skip to content

Instantly share code, notes, and snippets.

@mjschranz
Last active August 29, 2015 14:11
Show Gist options
  • Save mjschranz/406f3a0d056fb08adf07 to your computer and use it in GitHub Desktop.
Save mjschranz/406f3a0d056fb08adf07 to your computer and use it in GitHub Desktop.
Netflix Auto Resume Browser
setInterval(function() {
var resumeButtons = document.querySelectorAll("button.button.continue-playing");
// Sadly no unique identifiers on each button for continue/restart/stop
// Only real way is to look for strings inside, but if all you want to do
// is auto continue, this will suffice until HTML layout changes
// Obviously, open your console and run this while you have a video stream running.
// Admittedly I have NOT tested this in the event of this popup appearing after a
// new video has started so unsure if pages are reloaded or not.
// Do let me know if I'm completely wrong!
if (resumeButtons.length) {
resumeButtons[0].click();
}
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment