
As websites have moved away from static pages to interactive updating displays, the modern Greasemonkey hacker has been forced to learn new tricks: namely interacting with the Javascript on a website. Sometimes that’s harder than it looks because the Javascript on the site you want to modify has been minified.
Minifying is a process where all the comments, whitespace and variable names of a file are removed so that it is smaller in size. This is better for the users because it takes less time to load the site. It’s worse for Greasemonkey hackers because all you get is a mess of gobblety gook.
- Install this javascript beautifier Greasemonkey script
- Cut-and-paste the minified javascript from the site you want to work with

- Visit nopaste.voric.com and cut-and-paste the code from the site
- Click the Javascript option
- Change “Save until” to 1 day
- Cut and paste the code from the site
- Click “Save”
- Click the Beautify link


Now you have a copy of the source code you can work with! I usually save it to a local file at this point so that I can annotate it with comments.
There are probably simpler ways to do this with other javascript beautifiers, but I haven’t found any other ones that do as good of a job at deminifying code as this trick.

How to Earn a Six Figure Income from Blogging in Two Easy Steps
How NOT to be a Successful Blogger
81 movies for geeks that do not suck
Web Anonymity 101 - Digital Breadcrumbs
76 Romantic Movies for Guys and Girls
107 t-shirts for geeks that do not suck



2 Comments
Interesting trick, glad I found it.
it’s all greek to me. but the friendfeed image reminded me, the friendfeed feed doesn’t display properly in wordpress.com. do you know of a trick to get it working? if you do, please share. thanks in advance! :D
One Trackback
[...] How to Unminify Javascript Code [...]