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.0
  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 site = window.location.href || document.URL;
  31. if(site.includes("tempostorm.com")) remove = ".ad, .ad-wrap, .adblock";
  32. else if(site.includes("agar.io")) remove = "#adbg, [data-itr*=ad]";
  33. else if(site.includes("chip.de")) remove = "#ads, #adunit, .adsbygoogle, [id*=contentad]";
  34. else if(site.includes("3dchip.de")) remove = "img[src*=werbung], img[src*=banner]";
  35. else if(site.includes("golem.de")) remove = ".adsbygoogle";
  36. else if(site.includes("heise.de")) remove = ".ad_us";
  37. else if(site.includes("msn.com")) remove = "[id*=taboola]";
  38. else if(site.includes("wetter.com")) remove = "[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. else if(site.includes("pastebin.com")) remove = "#notice, [id*=abrpm], .banner_728";
  40. else if(site.includes("salamisound.de")) remove = "#header_0_warning, .header_0_warning";
  41. else if(site.includes("crodict.de")) remove = "#context .box:nth-of-type(2)";
  42. else if(site.includes("pcwelt.de")) remove = "#header ~ div:nth-of-type(1), #header ~ div:nth-of-type(2), #header ~ div:nth-of-type(3)";
  43. else if(site.includes("tropicraft.net")) remove = "center h2, center ins";
  44. else if(site.includes("minecraft-forum.net")) remove = ".download-panel #ImageAndButton";
  45. if(remove !== undefined) {
  46. GM_addStyle(
  47. remove + " { \
  48. display: none !important; \
  49. visibility: hidden !important; \
  50. width: 0px !important; \
  51. height: 0px !important; \
  52. }"
  53. );
  54. console.info("Dont Use AdBlock - Killer was active [Identification: " + remove + ", Nodes: " + document.querySelectorAll(remove) + "].");
  55. }