TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JSNice: Statistical renaming, type inference, and deobfuscation

110 pointsby henridfover 8 years ago

7 comments

andybakover 8 years ago
I'd like to know more about how it picks variable names. Running it on non-obfuscated code is amusing. It occasionally comes up with better names for my variables than the ones I had picked.
评论 #12957619 未加载
sligover 8 years ago
I tried to de-obfuscate some HTML5 games that I made and the result was bad, marginally better than some naive JS beautifiers.<p>Yes, we all know that it&#x27;s pointless to obfuscate client side code, but this serves as a simple deterrent. I&#x27;ve had games copied&#x2F;pasted on some Chinese website and this seems to avoid that.<p>I used this [0] to obfuscate, which is free and open-source. You can also try it online here [1] if you don&#x27;t feel like installing the Node.js package just for playing with it.<p>disclosure: I built the web interface [1] to the obfuscator, which is also open source.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;javascript-obfuscator&#x2F;javascript-obfuscator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;javascript-obfuscator&#x2F;javascript-obfuscat...</a> [1]: <a href="https:&#x2F;&#x2F;javascriptobfuscator.herokuapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;javascriptobfuscator.herokuapp.com&#x2F;</a>
评论 #12957416 未加载
jwarrenover 8 years ago
I&#x27;m a big fan of JSNice - it&#x27;s easily the best JS beautifier I&#x27;ve used. It&#x27;s twice saved my bacon, really helping to make sense of some horrible, buggy third-party code.
kwhitefootover 8 years ago
It would be useful to have this for other languages. I&#x27;d love to have it for some of the VB.net and C# I have seen.
z3t4over 8 years ago
It would be cool if they made an API that an editor could interact with.
bfleschover 8 years ago
I really like this. Is it using the flowtype notation?
评论 #12956988 未加载
sethxover 8 years ago
Doesnt seem to work with ES6 and imports ? :(
评论 #12960913 未加载