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?
to test it i enable the mentioned hosts again to be loaded through privoxy.