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