Created
October 25, 2018 18:53
-
-
Save krestenlaust/92540cbbd9dd8b5ff1b231ff1d8d106e to your computer and use it in GitHub Desktop.
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 characters
// ==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); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please note: I haven't tested the finished script since I did not get any more boxes.