Dont Use AdBlock - Killer

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

目前為 2016-05-10 提交的版本,檢視 最新版本

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