473,480 Members | 4,985 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

decompressing javascript

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=='');

Jan 30 '07 #1
2 1509
On Jan 30, 8:34 am, "Yoo" <idea8id...@yahoo.comwrote:
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.

Jan 30 '07 #2
"Yoo" <id********@yahoo.comwrote in news:1170146068.345513.289030
@a75g2000cwd.googlegroups.com:
Is there a good website that decompresses javascript code input?
http://subsimple.com/bookmarklets/jsbuilder.htm

Jan 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
8912
by: jimmyfingers | last post by:
I've just tried the following code for decompressing a .zip file, but get the following error message: "The magic number in GZip header is not correct. Make sure you are passing in a GZip stream."...
1
2842
by: jeet232 | last post by:
I'm sending 56kb of GZipped data from sending side over a socket on localhost. The receiving side (at localhost) receives it and needs to unzip it. I receive: EOFException: Unexpected end of ZLib...
0
7040
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6736
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4772
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4478
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2994
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.