YouTube "Video paused. Continue watching?" Nuker

Autoclick the pesky "Video paused. Continue watching?" message that pops up when YouTube plays a while without any user interation.

  1. // ==UserScript==
  2. // @name YouTube "Video paused. Continue watching?" Nuker
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Autoclick the pesky "Video paused. Continue watching?" message that pops up when YouTube plays a while without any user interation.
  6. // @author You
  7. // @match https://youtube.com/watch*
  8. // @match https://www.youtube.com/watch*
  9. // @require https://code.jquery.com/jquery-3.4.1.min.js
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. window.setInterval(function(){
  17. $("#confirm-button").click();
  18. }, 5000);
  19. })();