Dont Use AdBlock - Killer

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

2016-07-05 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==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*://*agar.io/*
// @include     http*://*chip.de/*
// @include     http*://*3dchip.de/*
// @include     http*://*golem.de/*
// @include     http*://*heise.de/*
// @include     http*://*msn.com/*
// @include     http*://*wetter.com/*
// @include     http*://*pastebin.com/*
// @include     http*://*salamisound.de/*
// @include     http*://*crodict.de/*
// @include     http*://*pcwelt.de/*
// @include     http*://*tropicraft.net/dl/?l=*
// @include     http*://*minecraft-forum.net/v/file/*
// @version     3.0
// @grant    	GM_addStyle
// ==/UserScript==


	if(!('includes' in String.prototype)) {
       		String.prototype.includes = function(str, startIndex) {
                	return -1 !== String.prototype.indexOf.call(this, str, startIndex);
       		};
 	}

	var site = window.location.href || document.URL;
		
	if(site.includes("tempostorm.com")) remove = ".ad, .ad-wrap, .adblock";
	else if(site.includes("agar.io")) remove = "#adbg, [data-itr*=ad]";
	else if(site.includes("chip.de")) remove = "#ads, #adunit, .adsbygoogle, [id*=contentad]";
	else if(site.includes("3dchip.de")) remove = "img[src*=werbung], img[src*=banner]";
	else if(site.includes("golem.de")) remove = ".adsbygoogle";
	else if(site.includes("heise.de")) remove = ".ad_us";
	else if(site.includes("msn.com")) remove = "[id*=taboola]";
	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";
	else if(site.includes("pastebin.com")) remove = "#notice, [id*=abrpm], .banner_728";
  else if(site.includes("salamisound.de")) remove = "#header_0_warning, .header_0_warning";
  else if(site.includes("crodict.de")) remove = "#context .box:nth-of-type(2)";
  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)";
  else if(site.includes("tropicraft.net")) remove = "center h2, center ins";
  else if(site.includes("minecraft-forum.net")) remove = ".download-panel #ImageAndButton";
				
	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 + ", Nodes: " + document.querySelectorAll(remove) + "].");
	}