Skip to content

Commit

Permalink
Add license file.
Browse files Browse the repository at this point in the history
  • Loading branch information
aemkei committed Aug 22, 2012
1 parent dc5c0aa commit 570ecd3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
13 changes: 13 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 3 additions & 4 deletions jsfuck.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*! JSFuck 1.0 - http://jsfuck.com */

(function(){

var USE_CHAR_CODE = "USE_CHAR_CODE";
Expand All @@ -9,7 +11,7 @@
'true': '!![]',
'undefined': '[][[]]',
'NaN': '+[![]]',
'Infinity': '+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])'
'Infinity': '+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])' // +"1e1000"
};

var CONSTRUCTORS = {
Expand Down Expand Up @@ -237,7 +239,6 @@
}

if (wrapWithEval){

output = "[][" + encode("filter") + "]" +
"[" + encode("constructor") + "]" +
"(" + output + ")()"
Expand All @@ -246,8 +247,6 @@
return output;
}

var time = new Date();

fillMissingDigits();
fillMissingChars();
replaceMap();
Expand Down

0 comments on commit 570ecd3

Please sign in to comment.