From dc76173e1426a93ece5c77885cac3f5e191b107a Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Wed, 11 May 2016 14:53:37 -0400 Subject: [PATCH] Fully killed 3dsthem.es's aaak --- userscripts/3dsthemes_anti3ak.user.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); }; -- 2.39.5