geeklab.info function abpdetct

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
John Doe

geeklab.info function abpdetct

Post by John Doe »

Hello everybody,
I'm stuck trying to use adblockplus filters on http://www.geeklab.info/
My problem is how to defeat this piece of javascript

Code: Select all

	<script>
	function abpdetct(){
		var abpdet=1;
		jQuery('#schoorsteen iframe').each(function(){ abpdet=0});
		if(abpdet)
			jQuery('div.texty').html('I\'m giving the information for free, but hosting this website costs me money.<br>Please disable your ad blocker and reload this page.').css('color','yellow').css('background-color','red');
	}
	window.setTimeout('abpdetct();',1500);
	</script>
Any help or suggestions will be very appreciated.
MonztA
ABP Developer
Posts: 3957
Joined: Mon Aug 14, 2006 12:18 am
Location: Germany

Re: geeklab.info function abpdetct

Post by MonztA »

These 2 whitelists are needed. I've fixed this in EasyList.

Code: Select all

@@||pagead2.googlesyndication.com/pagead/js/*/show_ads_impl.js$domain=geeklab.info
@@||pagead2.googlesyndication.com/pagead/show_ads.js$domain=geeklab.info
John Doe

Re: geeklab.info function abpdetct

Post by John Doe »

Thank you for fixing this issue. I'm very impressed by the very little amount of time from asking my question to getting your answer.

BTW: Is any way to disable completely something like this one or the only what can be done is to allow the ads?
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: geeklab.info function abpdetct

Post by Michael »

The filters suggested don't actually permit the display of adverts; they merely permit certain required items to be loaded on the page. It is not possible to remove the detection script itself with Adblock Plus.
LorenzoC

Re: geeklab.info function abpdetct

Post by LorenzoC »

*** disclaimer: I am not recommending this, don't try it at home ***

Apparently an alternative approach to whitelisting on this site could be to block the JQuery library with something like:
||geeklab.info/wp-includes/js/jquery/*
I don't see anything major being broken because of it.
Locked