Skip to content

Instantly share code, notes, and snippets.

@krestenlaust
Created October 25, 2018 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krestenlaust/92540cbbd9dd8b5ff1b231ff1d8d106e to your computer and use it in GitHub Desktop.
Save krestenlaust/92540cbbd9dd8b5ff1b231ff1d8d106e to your computer and use it in GitHub Desktop.
// ==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);
})();
@krestenlaust
Copy link
Author

Please note: I haven't tested the finished script since I did not get any more boxes.

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