amcu11 / YouTube don't stop

// ==UserScript==
// @name         YouTube don't stop
// @namespace    https://www.hicparaverme.com
// @version      0.1
// @description  Play limitless videos/music
// @author       amcu11
// @match        http://www.youtube.com/*
// @match        https://www.youtube.com/*
// @match        http://youtube.com/*
// @match        https://youtube.com/*
// @copyright 2020, amcu11 (https://openuserjs.org/users/amcu11)
// @license MIT
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  var clickCheck = setInterval(function () {
    if (document.querySelectorAll("#confirm-button").length > 0) {
      clearInterval(clickCheck);

      document.querySelector("#confirm-button").click();
    }
  }, 5000);
})();