Promotion and so on control the Javascript file displayed by the ad and the Javascript in the source file of the generated ad unit Code All are processed by JS compressors and obfuscators. To reduce the size of these files.
When we need to analyze these files, we need a tool to format JavaScript code for easy reading.
Here I will introduce JavaScript code improver as a free tool. He is very simple. Only the function of formatting code is enough. Supports switching between Chinese and English interfaces.
Download:JavaScript code Improver
JavaScript code Improver
Cannot read your own JavaScript code?
Cannot find that closing brace?
Lost all hope of making head or tail of the JavaScript code inherited from your collegou?
Or just curious of how JavaScript works?
Try JavaScript code improver!
With JavaScript code improver you are just one click away from making any JavaScript clear, easily comprehensible and ready for printing thus saving the time you spend on editing, debugging and modifying it. forget about all problems resulting from those illegible javascripts!
Compare how the same piece of code looks before:
< Script Language = "JavaScript" > VaR I = 0 , S = "" , K= 0 ; Function foo ( ) { For ( J = 0 ; J < 10 ; J ++ ) { For ( I = 0 ; I < 10 ; I ++ ) { S = "String1" ; K = Math. Floor ( Math. Random ( ) * 10 ) ; } For ( I = 20 ; I > 9 ; I -- ) { S = "String2" ; K = I ; } } } </ Script >
And after processing by JavaScript code improver:
< Script Language = "JavaScript" > VaR I = 0 , S = "" , K = 0 ; Function Foo ( ) { For ( J = 0 ; J < 10 ; J ++ ) { For ( I = 0 ; I < 10 ; I ++ ) { S = "String1" ; K = Math. Floor ( Math. Random ( ) * 10 ) ; } For ( I = 20 ; I > 9 ; I -- ) { S = "String2" ; K = I; } } } </ Script >
You can see the difference, can't you?
The program's flexible settings let you structure the code in any way you like. so, even if your JavaScript code is pretty comprehensible, you can just give it more professional or just more pleasant feel.
- Impact of Google Adsense's new click mode on statistical tools
- Adsense code analysis old version show_ads.js
One response to "JavaScript code formatting tool (essential for JS Code Analysis )"
- Roboter's blog» JS compression and decompression toolsSays:
September 5 th, 2008 at pm[…] JavaScript code improver, which can restore the compressed JS file. The website does not seem to be opened. You can download it at http://www.cnzzr.cn/2007/11/javascript-code-improver.html. […]