Dont Use AdBlock - Killer

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

目前为 2016-07-24 提交的版本。查看 最新版本

  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*://*agar.io/*
  7. // @include http*://*chip.de/*
  8. // @include http*://*3dchip.de/*
  9. // @include http*://*golem.de/*
  10. // @include http*://*heise.de/*
  11. // @include http*://*msn.com/*
  12. // @include http*://*wetter.com/*
  13. // @include http*://*pastebin.com/*
  14. // @include http*://*salamisound.de/*
  15. // @include http*://*crodict.de/*
  16. // @include http*://*pcwelt.de/*
  17. // @include http*://*tropicraft.net/dl/?l=*
  18. // @include http*://*minecraft-forum.net/v/file/*
  19. // @include http*://*gottabemobile.com/*
  20. // @include http*://*prosiebenmaxx.at/*
  21. // @include http*://*mobilesringtones.com/*
  22. // @version 3.5
  23. // @grant GM_addStyle
  24. // ==/UserScript==
  25.  
  26.  
  27. if(!('includes' in String.prototype)) {
  28. String.prototype.includes = function(str, startIndex) {
  29. return -1 !== String.prototype.indexOf.call(this, str, startIndex);
  30. };
  31. }
  32.  
  33. var data = {
  34. "tempostorm.com" : ".ad, .ad-wrap, .adblock",
  35. "agar.io" : "#adbg, [data-itr*=ad]",
  36. "chip.de" : "#ads, #adunit, .adsbygoogle, [id*=contentad]",
  37. "3dchip.de" : "img[src*=werbung], img[src*=banner]",
  38. "golem.de" : ".adsbygoogle",
  39. "heise.de" : ".ad_us",
  40. "msn.com" : "[id*=taboola]",
  41. "wetter.com" : "[id*=adform-adbox], .adform-adbox, #banner, .adsContainer, .lkIqES, [id*=ad-], #VJIlqro.RlzwrKHa, #NLKiiz.EsZrDeXPRZ, #naFsCzMmuw.APiOHcXTO, #content_wide div:first-child, #XEVINd, .ad-wrapper, [id*=ad_target], .contilla579dd4d8Box, [id*=adslot], .contentteaserBox.wideTeaser",
  42. "pastebin.com" : "#notice, [id*=abrpm], .banner_728",
  43. "salamisound.de" : "#header_0_warning, .header_0_warning",
  44. "crodict.de" : "#context .box:nth-of-type(2)",
  45. "pcwelt.de" : "#header ~ div:nth-of-type(1), #header ~ div:nth-of-type(2), #header ~ div:nth-of-type(3)",
  46. "tropicraft.net" : "center h2, center ins",
  47. "minecraft-forum.net" : ".download-panel #ImageAndButton",
  48. "gottabemobile.com" : "center i",
  49. "prosiebenmaxx.at" : "#main > div:first-child, [id*=ad-performance], .ad, #main > div:nth-of-type(6)",
  50. "mobilesringtones.com" : ".site-usage-warning"
  51. };
  52.  
  53. var site = window.location.href || document.URL;
  54. for(var url in data) {
  55. if(site.includes(url)) {
  56. remove = data[url];
  57. break;
  58. }
  59. }
  60. if(typeof remove != undefined) {
  61. GM_addStyle(
  62. remove + " { \
  63. display: none !important; \
  64. visibility: hidden !important; \
  65. width: 0px !important; \
  66. height: 0px !important; \
  67. }"
  68. );
  69. console.info("Dont Use AdBlock - Killer was active [Identification: " + remove + "].");
  70. }