Removes the "Dont use Ad Blocker" Messages on some sites
当前为
// ==UserScript==
// @name Dont Use AdBlock - Killer
// @namespace MegaByteGreaseMonkeyDUABK
// @description Removes the "Dont use Ad Blocker" Messages on some sites
// @include http://tempostorm.com/*
// @include http://www.tempostorm.com/*
// @include https://tempostorm.com/*
// @include https://www.tempostorm.com/*
// @include http://agar.io/*
// @include http://www.agar.io/*
// @include https://agar.io/*
// @include https://www.agar.io/*
// @include http://chip.de/*
// @include http://www.chip.de/*
// @include https://chip.de/*
// @include https://www.chip.de/*
// @include http://3dchip.de/*
// @include http://www.3dchip.de/*
// @include https://3dchip.de/*
// @include https://www.3dchip.de/*
// @include http://golem.de/*
// @include http://www.golem.de/*
// @include https://golem.de/*
// @include https://www.golem.de/*
// @include http://heise.de/*
// @include http://www.heise.de/*
// @include https://heise.de/*
// @include https://www.heise.de/*
// @include http://msn.com/*
// @include http://www.msn.com/*
// @include https://msn.com/*
// @include https://www.msn.com/*
// @include http://*.wetter.com/*
// @include http://www.*.wetter.com/*
// @include https://*.wetter.com/*
// @include https://www.*.wetter.com/*
// @version 2.4.2
// @grant GM_addStyle
// ==/UserScript==
if(!('contains' in String.prototype)) {
String.prototype.contains = function(str, startIndex) {
return -1 !== String.prototype.indexOf.call(this, str, startIndex);
};
}
var site = window.location.href || document.URL;
if(site.contains("tempostorm.com")) remove = ".ad, .ad-wrap, .adblock";
else if(site.contains("agar.io")) remove = "#adbg, [data-itr*=ad]";
else if(site.contains("chip.de")) remove = "#ads, #adunit, .adsbygoogle, [id*=contentad]";
else if(site.contains("3dchip.de")) remove = "img[src*=werbung], img[src*=banner]";
else if(site.contains("golem.de")) remove = ".adsbygoogle";
else if(site.contains("heise.de")) remove = ".ad_us";
else if(site.contains("msn.com")) remove = "[id*=taboola]";
else if(site.contains("wetter.com")) remove = "[id*=adform-adbox], .adform-adbox, #banner, .adsContainer, .contilla579dd4d8Box, [id*=adslot]";
if(remove !== undefined) {
GM_addStyle(
remove + " { \
display: none !important; \
visibility: hidden !important; \
width: 0px !important; \
height: 0px !important; \
}"
);
console.info("Dont Use AdBlock - Killer was active [identification: " + remove + "].");
}