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/*
// @version 2.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]";
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 + "].");
}