Many of you already know JSF**k. For those who don't, it's a script that basically turns any JavaScript code into something written using only []()!+
.
Your task is to build, using any language of your choice, a program which converts JSF**k into unobfuscated JavaScript.
- Input: A string with valid JSF**k code.
- Output: A string with the regular JavaScript code that has been previously JSF**ked to generate the input.
For this challenge, consider that the input string has only been JSF**ked once.
This is a code-golf contest, so the shortest code, in bytes, wins.
[...]
array access was part of the original code or part of the obfuscation? same for all other constructs, really. \$\endgroup\$ – Martin Ender May 28 '14 at 19:10