reek / anti-adblock-killer

Anti-Adblock Killer helps you keep your Ad-Blocker active, when you visit a website and it asks you to disable.
http://reek.github.io/anti-adblock-killer/
Other
6.01k stars 762 forks source link

cwtv.com #2351

Open vogie opened 7 years ago

vogie commented 7 years ago

http://www.cwtv.com/shows/arrow/ http://imgur.com/erMu4fX Mozilla Firefox Grease Monkey Adblock Plus EasyList + AakList

mapx- commented 7 years ago

https://forums.lanik.us/viewtopic.php?p=106559#p106559

Giwayume commented 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;
            };

          });

        }
      },
roy-harmon commented 7 years ago

At the risk of revealing my ignorance, I have to ask...

How does one use that script?

Giwayume commented 7 years ago

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.

roy-harmon commented 7 years ago

Thanks! That makes perfect sense now.

Treazul commented 7 years ago

This no longer works since CW has changed the way they provide their videos.