From: chaoskagami Date: Wed, 11 May 2016 18:53:37 +0000 (-0400) Subject: Fully killed 3dsthem.es's aaak X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=dc76173e1426a93ece5c77885cac3f5e191b107a;p=misc%2Frandom-utils.git Fully killed 3dsthem.es's aaak --- diff --git a/userscripts/3dsthemes_anti3ak.user.js b/userscripts/3dsthemes_anti3ak.user.js index 803821f..9174410 100644 --- a/userscripts/3dsthemes_anti3ak.user.js +++ b/userscripts/3dsthemes_anti3ak.user.js @@ -21,14 +21,14 @@ window.oldInterval = window.setInterval; // See, we're a hack. We replace setinterval. window.setInterval = function(fun, time) { // This could have false positives, but w/e we'll fix it someday - var test = fun.toString().search("adblock"); + var test = fun.toString().search("anti adblock killer"); + if (test > 0) { console.log("Anti-AAK detected. Die in a fire."); - pageLoaded = true; + window.pageLoaded = true; return 0; - } else { - console.log("Calling setInterval normally."); - return window.oldInterval(fun, time); } - return 0; + + console.log("Calling setInterval normally."); + return window.oldInterval(fun, time); };