Dont Use AdBlock - Killer

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

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

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