Browse Source

Add license file.

Martin Kleppe 12 years ago
parent
commit
570ecd3b1b
2 changed files with 16 additions and 4 deletions
  1. 13 0
      LICENSE.txt
  2. 3 4
      jsfuck.js

+ 13 - 0
LICENSE.txt

@@ -0,0 +1,13 @@
+           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+                   Version 2, December 2004
+
+Copyright (C) 2012 Martin Kleppe <http://jsfuck.com>
+
+Everyone is permitted to copy and distribute verbatim or modified
+copies of this license document, and changing it is allowed as long
+as the name is changed.
+
+           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.

+ 3 - 4
jsfuck.js

@@ -1,3 +1,5 @@
+/*! JSFuck 1.0 - http://jsfuck.com */
+
 (function(){
   
   var USE_CHAR_CODE = "USE_CHAR_CODE";
@@ -9,7 +11,7 @@
     'true':       '!![]',
     'undefined':  '[][[]]',
     'NaN':        '+[![]]',
-    'Infinity':   '+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])'
+    'Infinity':   '+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])' // +"1e1000"
   };
   
   var CONSTRUCTORS = {
@@ -237,7 +239,6 @@
     }
 
     if (wrapWithEval){
-      
       output = "[][" + encode("filter") + "]" +
         "[" + encode("constructor") + "]" +
         "(" + output + ")()"
@@ -246,8 +247,6 @@
     return output;
   }
       
-  var time = new Date();
-  
   fillMissingDigits();
   fillMissingChars();
   replaceMap();