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. // @include http://chip.de/*
  14. // @include http://www.chip.de/*
  15. // @include https://chip.de/*
  16. // @include https://www.chip.de/*
  17. // @version 2.1
  18. // @grant GM_addStyle
  19. // ==/UserScript==
  20.  
  21.  
  22. if(!('contains' in String.prototype)) {
  23. String.prototype.contains = function(str, startIndex) {
  24. return -1 !== String.prototype.indexOf.call(this, str, startIndex);
  25. };
  26. }
  27.  
  28. var site = window.location.href || document.URL;
  29. if(site.contains("tempostorm.com")) remove = ".ad, .ad-wrap, .adblock";
  30. else if(site.contains("agar.io")) remove = "#adbg, [data-itr*=ad]";
  31. else if(site.contains("chip.de")) remove = "#ads, #adunit";
  32. if(remove !== undefined) {
  33. GM_addStyle(
  34. remove + " { \
  35. display: none !important; \
  36. visibility: hidden !important; \
  37. width: 0px !important; \
  38. height: 0px !important; \
  39. }"
  40. );
  41. console.info("Dont Use AdBlock - Killer was active [identification: " + remove + "].");
  42. }