Skip to content

Instantly share code, notes, and snippets.

@bhang
Forked from coopmoney/disable-netflix-pauses.js
Created October 8, 2015 14:12
Show Gist options
  • Select an option

  • Save bhang/c1e52ca6974e11039573 to your computer and use it in GitHub Desktop.

Select an option

Save bhang/c1e52ca6974e11039573 to your computer and use it in GitHub Desktop.
Netflix: Disable "Are you still watching?" pauses
// copy/paste into chrome console (alt+cmd+J) after the video starts playing.
setInterval(function() {
var possibleButtons = document.getElementsByClassName('continue-playing');
if (possibleButtons.length) {
for (var i = 0; i < possibleButtons.length; i++) {
if (/Continue Playing/.test(possibleButtons[i].textContent)) {
var event = document.createEvent('HTMLEvents');
event.initEvent('click', true, false);
possibleButtons[i].dispatchEvent(event);
}
}
}
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment