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