Skip to content

Instantly share code, notes, and snippets.

@krestenlaust
Created October 25, 2018 18:53
Show Gist options
  • Select an option

  • Save krestenlaust/92540cbbd9dd8b5ff1b231ff1d8d106e to your computer and use it in GitHub Desktop.

Select an option

Save krestenlaust/92540cbbd9dd8b5ff1b231ff1d8d106e to your computer and use it in GitHub Desktop.

Revisions

  1. krestenlaust created this gist Oct 25, 2018.
    20 changes: 20 additions & 0 deletions youtubenopause.userscript.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    // ==UserScript==
    // @name Video was paused killer
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description Kills the "Video paused. Continue?" box that pops up every once in awhile
    // @author Nett18 - github.com/kres0345
    // @match https://www.youtube.com/watch?v=*
    // @grant none
    // ==/UserScript==

    (function() {
    'use strict';

    window.setInterval(function(){
    if(document.getElementById("main") != undefined){
    document.getElementsByClassName("style-scope yt-button-renderer style-blue-text size-default")[0].click();
    document.getElementById("main").parentNode.removeChild(document.getElementById("main"));
    }
    }, 5000);
    })();