Open vogie opened 7 years ago
This is working for me. I haven't tested it very thoroughly.
cwtv_com : {
host : ['cwtv.com'],
onStart : function () {
Aak.addScript(function() {
var decodeStr = function(args) {
var str = "";
for (var i=0, il=args.length; i<il; i++) {
str += String.fromCharCode(args[i]);
}
return str;
};
Array.prototype.map = function(fun, thisp) {
var arr = Array.prototype.slice.call(this);
if (decodeStr(arr) == "adblock") {
return [Math.random().toString()];
}
if (this === void 0 || this === null) {
throw new TypeError();
}
var t = Object(this);
var len = t.length >>> 0;
if (typeof fun !== "function") {
throw new TypeError();
}
var res = [ ];
for (var i = 0; i < len; i++) {
if (i in t) {
var val = t[i];
res[i] = thisp ? fun.call(thisp, val, i, t) : fun(val, i, t);
}
}
return res;
};
});
}
},
At the risk of revealing my ignorance, I have to ask...
How does one use that script?
Assuming you already have the AAK user script installed, edit the script in your script manager (tampermonkey or greasemonkey), search for the current block in the script:
cwtv_com : {
// by: Kalbasit
// pull: https://github.com/reek/anti-adblock-killer/pull/763
// issue: https://github.com/reek/anti-adblock-killer/issues/340
// issue: https://github.com/reek/anti-adblock-killer/issues/762
host : ['cwtv.com'],
onAlways : function () {
Aak.uw.CWTVIsAdBlocking = undefined;
}
},
And replace it with what's in my comment above.
Thanks! That makes perfect sense now.
This no longer works since CW has changed the way they provide their videos.
http://www.cwtv.com/shows/arrow/ http://imgur.com/erMu4fX Mozilla Firefox Grease Monkey Adblock Plus EasyList + AakList