Page 1 of 1

Blocking FuckAdblock

Posted: Tue Oct 06, 2015 1:29 pm
by tlotw
There is this FuckAdblock script being used to detect and block Adblock. It is being used by some pages on www.dayt.se
An example is http://dayt.se/forum/showthread.php?671 ... -Subtitles
The script detects the presence of Adblock and redirects to http://dayt.se/adblock.php
Disabling Adblock on dayt.se does not solve the problem.
The main script that does the adblock detecting is http://dayt.se/forum/fuckadblock.js
However, if I disable that page, a variable is not set and the embedded function the main page ( e.g. http://dayt.se/forum/showthread.php?671 ... -Subtitles) still redirects to http://dayt.se/adblock.php

I think the solution is to block the particular function that redirects the user, rather than the whole script. Can this be done.
The http://dayt.se/forum/fuckadblock.js uses a 'bait'. maybe someone can help to go through to find another way to defeat it. The check bait function that is uesd to detect the presence of Adblock is given below:

Code: Select all

FuckAdBlock.prototype._checkBait = function(loop) {
		var detected = false;
		
		if(this._var.bait === null) {
			this._creatBait();
		}
		
		if(window.document.body.getAttribute('abp') !== null
		|| this._var.bait.offsetParent === null
		|| this._var.bait.offsetHeight == 0
		|| this._var.bait.offsetLeft == 0
		|| this._var.bait.offsetTop == 0
		|| this._var.bait.offsetWidth == 0
		|| this._var.bait.clientHeight == 0
		|| this._var.bait.clientWidth == 0) {
			detected = true;
		}
		if(window.getComputedStyle !== undefined) {
			var baitTemp = window.getComputedStyle(this._var.bait, null);
			if(baitTemp.getPropertyValue('display') == 'none'
			|| baitTemp.getPropertyValue('visibility') == 'hidden') {
				detected = true;
			}
		}
How can this FuckAdblock be defeated?

Re: Blocking FuckAdblock

Posted: Tue Oct 06, 2015 1:37 pm
by mapx
it was already fixed in easylist, just force an update of your lists

Re: Blocking FuckAdblock

Posted: Tue Oct 06, 2015 2:41 pm
by tlotw
It is still not working.
I forced an easylist as you suggested.
But the site still redirects as mentioned above.
Could you try it please?
Thank you

Re: Blocking FuckAdblock

Posted: Tue Oct 06, 2015 3:02 pm
by mapx
it works for me firefox / chrome
browser version ?
ABP version ?
filter lists ?
remove the custom filters for dayt if any
disable all other blocking addons / extensions (ghostery, disconnect, other adblocker)