Home Page
  • March 28, 2024, 07:23:21 am *
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Official site launch very soon, hurrah!


Author Topic: Netflix Auto Continue Play  (Read 9064 times)

Dakusan

  • Programmer Person
  • Administrator
  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • Dakusan's Domain
Netflix Auto Continue Play
« on: July 21, 2015, 10:34:46 pm »

Original post for Netflix Auto Continue Play can be found at https://www.castledragmire.com/Posts/Netflix_Auto_Continue_Play.
Originally posted on: 07/21/15

Here is a little Tampermonkey script for Chrome that automatically clicks the “Continue playing” button when it pops up on Netflix, pausing the current stream.


// ==UserScript==
// @name         Netflix auto continue play
// @namespace    https://www.castledragmire.com/Posts/Netflix_Auto_Continue_Play
// @version      1.0
// @description  When netflix pops up the "Continue play" button, this script auto-selects "Continue" within 1 second
// @author       Dakusan
// @match        http://www.netflix.com/
// @grant        none
// ==/UserScript==

setInterval(function() {
   var TheElements=document.getElementsByClassName('continue-playing');
   for(var i=0;i<TheElements.length;i++)
       if(/\bbutton\b/.test(TheElements[i].className))
       {
           console.log('"Continue Playing" Clicked');
           TheElements[i].click();
       }
}, 1000);

Make sure to set the “User matches” in the settings page to include both “http://www.netflix.com/*” and “https://www.netflix.com/*”.

Logged