NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name YouTubeNeverSleeps // @namespace http://tampermonkey.net/ // @version 0.2 // @description Disable video breaks. Disable youtube pause button. // @author gabriel.dina@cloudromania.ro // @license AGPL-3.0-or-later // @match https://www.youtube.com/* // @grant none // ==/UserScript== (function() { 'use strict'; console.log("Beaware! YouTube never sleeps!"); setInterval(function() { if(document.getElementById('button').hasAttribute('aria-label') == true) document.getElementById('button').click() if(document.querySelector('video').paused == true) { document.querySelector('video').play(); } }, 1000); })();