It's not finished yet, though it should't take long. I'll post on the
group when it's done.
:-)
On Nov 24 2009, 9:41 am, Peter Sunde <peter.su...@gmail.com> wrote:
> Hello,
>
> It would be great to have the js beautifier (http://jsbeautifier.org/)
> available in the Script / Net panel in Firebug.
>
> I have done the initial work of having the default behavior of
> jsbeautifier.org available in a wrapper here:http://pastebin.com/f10a017a0("indent with 4 spaces, preserve
> newlines and detect packers" defines default behavior in this case)
>
> Code is wrapped into beautifier = {}; avoiding crapping up the global
> scope
>
> It's as simple just calling beautifier.parse({ source: 'test =
> { hello: 'world' }', indent_size: 4, preserve_newlines: true });
>
> Shouldn't take to much time copying the fireCookie xpi addon template
> here:https://addons.mozilla.org/en-US/firefox/downloads/latest/6683/addon-...
It doesn't cover every single detail, but if anybody is interested in
specific part of the source code I'll update it.
Honza