this question is difficult to summarize in a question title
UPDATE I created a JSFiddle that builds an obfuscated string out of your input
This is about as close as I could get, unfortunately it violates the convention of the original obfuscation by making a call to unescape():
unescape((/%/+[])[1]+(/1/[1]+[])[1%1]+(+!1)+(+!1)+(1e1+(11*(1-~1)<<1)))
Teardown:
(/%/+[])[1] => "%"
(/1/[1]+[])[1%1] => "u"
(+!1) => "0"
(+!1) => "0"
(1e1+(11*(1-~1)<<1)) => "76"
===========================
unescape("%u0076") => "v"
Other ideas:
unescape("\x76")118 without calling String.fromCharCode()Updates:
I started playing code golf and have been making it shorter, replacing parts with more 1s, etc.