Remove Youtube Adblock Warnings!

No more 'Ad blockers are not allowed on YouTube'

  1. //New script available!
  2. //[BETA] Youtube NO preroll ads, Bypass new restrictions!
  3. //download: https://greasyfork.org/en/scripts/477464-beta-youtube-no-preroll-ads-bypass-new-restrictions
  4.  
  5.  
  6.  
  7. // ==UserScript==
  8. // @name Remove Youtube Adblock Warnings!
  9. // @namespace http://tampermonkey.net/
  10. // @version 0.2.2
  11. // @description No more 'Ad blockers are not allowed on YouTube'
  12. // @author coder369
  13. // @license MIT
  14. // @match https://www.youtube.com/*
  15. // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
  16. // @grant none
  17. // ==/UserScript==
  18.  
  19. (function() {
  20. 'use strict';
  21. var player = document.getElementById("movie_player");
  22. var closeit = setInterval(function() {
  23. if(document.getElementsByClassName("style-scope ytd-popup-container").length > 0 && document.getElementById("dismiss-button")&& document.getElementById("divider"))
  24. {
  25. setTimeout(function(){
  26. document.getElementById("dismiss-button").click();
  27. document.getElementsByClassName("ytp-play-button ytp-button")[0].click();
  28. console.log("banner closed");
  29. clearInterval(closeit);
  30. }, 4000);
  31. }
  32. }, 300);
  33. })();