Post Reply 
german site which blocks adblock
Feb. 03, 2016, 11:54 AM
Post: #13
RE: german site which blocks adblock
hey guys. so i found this two user scripts for bild.de.

first one:
Code:
// ==UserScript==
// @name         Bild Sperre umgehen
// @version      0.1
// @author       unknown
// @match        http://*www.bild.de/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

var interval = setInterval(function() {
    if (window.de) {
                window.de.bild.abTesting = function(a) { return; }
                clearInterval(interval);
  
    }
}, 0);

and second one:
Code:
// ==UserScript==
// @name        Override bild.de javascript checking
// @namespace   de.bild
// @description render bild.de javascript core class checks useless so that bild.de displays content even with certain scripts disabled
// @include     http://www.bild.de/*
// @include     http://bild.de/*
// @include     https://bild.de/*
// @include     https://www.bild.de/*
// @version     1
// @grant       none
// @run-at      document-start
// ==/UserScript==

window.de = {bild: {user: {}, env: {}, events: {}}};

bu none of them seem to work for me. it loads the site and at the end it redirects to the adblock warning site. so something at the end seems still to apply from somewhere.

i also found this:
Quote:from https://adblockplus.org/forum/viewtopic....68#p140124

the code responsible for the adblock detection is in the "de.bild.user" namespace:
Code:
...
            getAbData: function() {
                return i()
            }
    ...
    function i() {
            var a = de.bild.cmsKonfig;
            return s === !1 && (s = {
                elemHidden: f(),
                saDisabled: g(),
                apf: h()
            },
            s.ba = s.elemHidden || s.saDisabled,
            a && a.d && parseInt(a.d) > 2 && (s.ba = s.ba || s.apf === !0)),       s
        }
the f() and g() functions just check if some ad-related stuff is there and fills elemHidden and saDisabled with true or false.
s.ba (which stands for blockedads or something, i guess) then gets set to true if either of those are blocked.

so basically it would be enough to wrap the getAdData function onload with something like:
Code:
de.bild.user.getAbData = function() {
       var data = i();
       data.ba = data.elemHidden = data.saDisabled = false;
       return data;
    }

but i am not skilled enough. maybe cattleyavns can help me out here? Big Teeth

to test it i enable the mentioned hosts again to be loaded through privoxy.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
german site which blocks adblock - kik0s - Jan. 11, 2016, 06:42 PM
RE: german site which blocks adblock - kik0s - Jan. 11, 2016, 11:12 PM
RE: german site which blocks adblock - kik0s - Feb. 03, 2016, 12:19 PM
RE: german site which blocks adblock - kik0s - Jan. 11, 2016, 11:42 PM
RE: german site which blocks adblock - kik0s - Jan. 12, 2016, 10:48 AM
RE: german site which blocks adblock - kik0s - Jan. 31, 2016, 10:54 PM
RE: german site which blocks adblock - kik0s - Jan. 12, 2016, 12:06 AM
RE: german site which blocks adblock - kik0s - Jan. 12, 2016, 03:05 PM
RE: german site which blocks adblock - kik0s - Feb. 03, 2016 11:54 AM
RE: german site which blocks adblock - kik0s - Feb. 06, 2016, 12:19 AM
RE: german site which blocks adblock - kik0s - Feb. 28, 2016, 09:38 PM
RE: german site which blocks adblock - kik0s - Feb. 29, 2016, 05:11 PM
RE: german site which blocks adblock - kik0s - Feb. 29, 2016, 05:33 PM
RE: german site which blocks adblock - kik0s - Feb. 29, 2016, 05:40 PM
RE: german site which blocks adblock - kik0s - Mar. 04, 2016, 01:24 AM
RE: german site which blocks adblock - kik0s - Mar. 08, 2016, 12:24 PM

Forum Jump: