Skip to content

Instantly share code, notes, and snippets.

@coopermaruyama
Last active February 4, 2025 13:37
Show Gist options
  • Save coopermaruyama/2a704d13debb4e89adda to your computer and use it in GitHub Desktop.
Save coopermaruyama/2a704d13debb4e89adda 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);
@Oksitaine
Copy link

New version work for me in 2025 ( for all language ) :

setInterval(function() {
  // Select button with data-uia="interrupt-autoplay-continue"
  const btn = document.querySelector('button[data-uia="interrupt-autoplay-continue"]');
  if (btn) {
    btn.click();
    console.log("Button 'Are you still watching' is gone !");
  }
}, 2000);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment