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. // @include http://3dchip.de/*
  18. // @include http://www.3dchip.de/*
  19. // @include https://3dchip.de/*
  20. // @include https://www.3dchip.de/*
  21. // @include http://golem.de/*
  22. // @include http://www.golem.de/*
  23. // @include https://golem.de/*
  24. // @include https://www.golem.de/*
  25. // @include http://heise.de/*
  26. // @include http://www.heise.de/*
  27. // @include https://heise.de/*
  28. // @include https://www.heise.de/*
  29. // @include http://msn.com/*
  30. // @include http://www.msn.com/*
  31. // @include https://msn.com/*
  32. // @include https://www.msn.com/*
  33. // @include http://*.wetter.com/*
  34. // @include http://www.*.wetter.com/*
  35. // @include https://*.wetter.com/*
  36. // @include https://www.*.wetter.com/*
  37. // @version 2.4.2
  38. // @grant GM_addStyle
  39. // ==/UserScript==
  40.  
  41.  
  42. if(!('contains' in String.prototype)) {
  43. String.prototype.contains = function(str, startIndex) {
  44. return -1 !== String.prototype.indexOf.call(this, str, startIndex);
  45. };
  46. }
  47.  
  48. var site = window.location.href || document.URL;
  49. if(site.contains("tempostorm.com")) remove = ".ad, .ad-wrap, .adblock";
  50. else if(site.contains("agar.io")) remove = "#adbg, [data-itr*=ad]";
  51. else if(site.contains("chip.de")) remove = "#ads, #adunit, .adsbygoogle, [id*=contentad]";
  52. else if(site.contains("3dchip.de")) remove = "img[src*=werbung], img[src*=banner]";
  53. else if(site.contains("golem.de")) remove = ".adsbygoogle";
  54. else if(site.contains("heise.de")) remove = ".ad_us";
  55. else if(site.contains("msn.com")) remove = "[id*=taboola]";
  56. else if(site.contains("wetter.com")) remove = "[id*=adform-adbox], .adform-adbox, #banner, .adsContainer, .contilla579dd4d8Box, [id*=adslot]";
  57. if(remove !== undefined) {
  58. GM_addStyle(
  59. remove + " { \
  60. display: none !important; \
  61. visibility: hidden !important; \
  62. width: 0px !important; \
  63. height: 0px !important; \
  64. }"
  65. );
  66. console.info("Dont Use AdBlock - Killer was active [identification: " + remove + "].");
  67. }