Is there a plugin that allows me to automatically unminify the Javascript included on a site?

Henrik Heimbuerger picture Henrik Heimbuerger · Nov 25, 2010 · Viewed 11.9k times · Source

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:

  • Analysing and learning from complex web frontends.
  • Debugging Greasemonkey scripts which interact with the existing code.

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.

Answer

B T picture B T · Jan 28, 2011

Someone has made JSBeautifier into a Firebug plugin:

https://addons.mozilla.org/en-US/firefox/addon/javascript-deminifier/

This has made my day today!