Anti-Adblocker-Killer for Cnbeta.com.tw

Remove the anti-adblocker popup.

  1. // ==UserScript==
  2. // @name Anti-Adblocker-Killer for Cnbeta.com.tw
  3. // @version 0.2
  4. // @description Remove the anti-adblocker popup.
  5. // @author Eric Qian
  6. // @match https://www.cnbeta.com.tw/*
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=cnbeta.com.tw
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/1240870
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. var aak = function(i) {
  14. setTimeout(function() {
  15. var d = document.querySelectorAll('div.fc-ab-root');
  16. d.forEach(function(element) {
  17. element.remove();
  18. });
  19. var b = document.body;
  20. b.setAttribute('style', '');
  21. }, i * 50);
  22. };
  23.  
  24. var len = 20;
  25. for (var i = 0; i < len; i++) {
  26. aak(i);
  27. }
  28. })();