Skip navigation.

Harold's Home

   Home
  
XML version of this site

PHP Scripts

Index
CLI fun
Mail on 404
HB-NS (NewsScript)

Downloads

Applescripts
APOD to Desktop
Dreamweaver Extensions

Stuff

Writings
Other stuff
Central Grinder

OOOk Default:

VJ stuff
VJ Tools
Bananas
Strippers
Sample Movies

News

Pretty print JavaScript
Debugging a webapplication because it only allows Explorer or Firefox to log in is a bitch. Especially if the javascript has all whitespace removed in order to obfuscate the code and make it 0.000001% faster to download.
So off I went, to look for a code formatter for JavaScript, which seems to be hard to find. Lots of "pretty printers" as those tools are called for the various versions of C and Java but none did js files.

Until I stumbled across the online tool http://www.prettyprinter.de/ which does what it promises. Although it has some oddities it did allow me to reformat the code nicely and when that was done I discovered the secret braindead code that ignored everything but Mozilla and IE browsers.

A nice resource for the toolbox.

Show all items | Read all items

About, copyright, privacy and accessibility | Mail