Dont Use AdBlock - Killer

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

当前为 2016-07-06 提交的版本,查看 最新版本

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