-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative coding #4
Comments
[...Array(256)].map((x,i)=> `${i.toString(8)} ` +eval(`"\\${i.toString(8)}"`) ) As we see in that coding
Results for example libs (average prop=33%)
Results for example minified libs (average prop=24%)
So minified lib have 24% of characters which can by write using 3 characters in base8. Non minified libs have 33% (probably due to many white-chars). But we can assume that users usually will convert minified code to get jsfuck version (because it is smaller).
0 -> +(+!![]) // 1 ( 8 chars)
1 -> +!![] // true ( 5 chars)
2 -> +(+[]) // 0 ( 6 chars)
3 -> +[][[]] // undefined ( 7 chars)
4 -> +(+[![]]) // NaN ( 9 chars)
5 -> +(!![]+!![]) // 2 (12 chars)
6 -> +(![]+[])[+![]] // f (15 chars)
7 -> +(!![]+[])[+![]] // t (16 chars)`
8 -> +![] // false ( 4 chars)
|
Here: #6 is more promising modification of this approach wich can be checked and may be implemented in near future |
Check octal coding idea proposed by jsfuck author aemkei here:
'\141\154\145\162\164\50\61\51' in chrome console gives "alert(1)"
Check if this works with emoji/Chinese letters
The text was updated successfully, but these errors were encountered: