SC2Casts.com Adblock Nag Screen Remover

Removes the 'disable Adblock' nag screen.

当前为 2016-05-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name SC2Casts.com Adblock Nag Screen Remover
  3. // @namespace http://lazy.artifact
  4. // @version 0.25
  5. // @description Removes the 'disable Adblock' nag screen.
  6. // @author Lazy Artifact
  7. // @match http://sc2casts.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. //hi santah!! :-)
  13.  
  14. var popupFuncNameRegex = /pop[_-]*up/i,
  15. char,
  16. i,
  17. noop = function() {};
  18.  
  19. //remove nag screen
  20. for(i in window) {
  21. if(!window.hasOwnProperty(i)) {
  22. continue;
  23. }
  24.  
  25. if(!popupFuncNameRegex.test(i)) {
  26. continue;
  27. }
  28.  
  29. window[i] = noop;
  30. }
  31.  
  32. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址