Blocking FuckAdblock
Posted: Tue Oct 06, 2015 1:29 pm
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:
How can this FuckAdblock be defeated?
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;
}
}