decompressing javascript

Y

Yoo

Is there a good website that decompresses javascript code input?
Is there also a bookmarklet that decompresses bookmarklet code? This
kind of bookmarklet can be useful when studying bookmarklets from
Jesse's Bookmarklets Site.

By decompressing I mean changing:

do{if(r=prompt((s?'>> '+s+'\ncommand:':'query:'),'')){u=f
+encodeURIComponent(s?r+' '+s:r).replace(new
RegExp('%'+'20','g'),'+');if(n)w.open(u);else
location=u;if(n==2)w.focus();}else s=location.href;}while(r=='');}

into

do{
if(r = prompt((s?'>> '+s+'\ncommand:':'query:'), '')){
u = f + encodeURIComponent(s?r+' '+s:r).replace(new
RegExp('%'+'20','g'),'+');
if(n)
w.open(u);
else
location=u;
if(n==2) w.focus();
}
else
s = location.href;
}while(r=='');
 
D

David Dorward

Is there a good website that decompresses javascript code input?

I wrote a Perl module to do that a few years ago (when I was much more
of a newbie with Perl):

http://dorward.me.uk/tmp/jstidy/

I really should clean it up, work out why the last (very complicated)
bit of JS I tried it on failed, and put it up on the CPAN at some
point.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top