]> Chaos Git - misc/random-utils.git/commitdiff
Fully killed 3dsthem.es's aaak master
authorchaoskagami <chaos.kagami@gmail.com>
Wed, 11 May 2016 18:53:37 +0000 (14:53 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Wed, 11 May 2016 18:53:37 +0000 (14:53 -0400)
userscripts/3dsthemes_anti3ak.user.js

index 803821fbac97fa3fa1aae1bb72580c03fa3f73e1..91744101106df16f5e6024c0bebaa1ebfb51020c 100644 (file)
@@ -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);
 };