Is there a plugin, add-on, Greasemonkey script or something similar (at worst, an easy to use proxy?) that automatically unminifies the Javascript files included on a site?
I know about e.g. jsbeautifier.org but doing this externally doesn't allow me to set breakpoints in the unminified code, for example.
Typical use cases for me:
I'm primarily interested in a solution that works with Firebug, but if there's something for the dev tools of Chrome or Opera, I'd like to hear about it as well.
You can't unminify a minified file. You can use a beautifier to make it more readable, but you will have a weighty job of reverse engineering in order to understand what the code means.
Someone has made JSBeautifier into a Firebug plugin:
https://addons.mozilla.org/en-US/firefox/addon/javascript-deminifier/
This has made my day today!
In chrome 13+, there is 'pretty print'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With