How to unobfuscate Javascript

clipped from
More and more developers choose to obfuscate their javascript code, whether it is to save space or make it difficult to steal their code. Good for them. However, there may be times when you want to unobfuscate javascript code, particularly when you want to alter a javascript library of which you do not control the source.
Little did I know that this is as simple as alerting the code in Firefox.
Next you can simply copy the content of the alert box to get perfectly formatted javascript. The only caveat is that there is a limit to the string size that can be altered, you may have to alert your code in chunks.
I’m sure there are more high tech solutions to this, but I like this no-tool approach.

Related Posts:

  • No Related Posts
This entry was posted in Tech Tips, Web Development. Bookmark the permalink.

One Response to How to unobfuscate Javascript

Leave a Reply

Your email address will not be published. Required fields are marked *