Created
October 25, 2018 18:53
-
-
Save krestenlaust/92540cbbd9dd8b5ff1b231ff1d8d106e to your computer and use it in GitHub Desktop.
Revisions
-
krestenlaust created this gist
Oct 25, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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); })();