Dont Use AdBlock - Killer

Removes the "Dont use Ad Blocker" Messages on some sites

目前为 2016-05-10 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Dont Use AdBlock - Killer
  3. // @namespace MegaByteGreaseMonkeyDUABK
  4. // @description Removes the "Dont use Ad Blocker" Messages on some sites
  5. // @include http://tempostorm.com/*
  6. // @include http://www.tempostorm.com/*
  7. // @include https://tempostorm.com/*
  8. // @include https://www.tempostorm.com/*
  9. // @include http://agar.io/*
  10. // @include http://www.agar.io/*
  11. // @include https://agar.io/*
  12. // @include https://www.agar.io/*
  13. // @version 2
  14. // @grant GM_addStyle
  15. // ==/UserScript==
  16.  
  17.  
  18. if(!('contains' in String.prototype)) {
  19. String.prototype.contains = function(str, startIndex) {
  20. return -1 !== String.prototype.indexOf.call(this, str, startIndex);
  21. };
  22. }
  23.  
  24. var site = window.location.href || document.URL;
  25. if(site.contains("tempostorm.com")) remove = ".ad, .ad-wrap, .adblock";
  26. else if(site.contains("agar.io")) remove = "#adbg, [data-itr*=ad]";
  27. if(remove !== undefined) {
  28. GM_addStyle(
  29. remove + " { \
  30. display: none !important; \
  31. visibility: hidden !important; \
  32. width: 0px !important; \
  33. height: 0px !important; \
  34. }"
  35. );
  36. console.info("Dont Use AdBlock - Killer was active [identification: " + remove + "].");
  37. }