Re: [Zope] Javascript obfuscator and Zope

2006-01-04 Thread Peter Bengtsson
It's not a Zope product but at least it's python.
http://www.issuetrackerproduct.com/Download#slimmer

It's basically a javascript whitespace optimiser
Compare
http://real.issuetrackerproduct.com/tw-sack.js
with the original:
http://www.issuetrackerproduct.com/tw-sack.js

More work can be done of course but I wanted to keep it relatively CPU fast.
It works on CSS and HTML too:
http://www.peterbe.com/stylesheet.css

On 12/29/05, David H [EMAIL PROTECTED] wrote:
 Hi list,

 I am wondering if anyone is obfuscating JavaScript  using a python
 script or product.  I did some googling but nothing cropped up.  Seems
 like a nice idea unless the  realities of javascript obfuscation make
 the exercise pointless.

 Any thoughts?

 David

 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )



--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Javascript obfuscator and Zope

2006-01-04 Thread Jean-Marc Orliaguet

Peter Bengtsson wrote:


It's not a Zope product but at least it's python.
http://www.issuetrackerproduct.com/Download#slimmer

It's basically a javascript whitespace optimiser
Compare
http://real.issuetrackerproduct.com/tw-sack.js
with the original:
http://www.issuetrackerproduct.com/tw-sack.js

More work can be done of course but I wanted to keep it relatively CPU fast.
It works on CSS and HTML too:
http://www.peterbe.com/stylesheet.css

 



there is minjs written in C too: 
http://www.crockford.com/javascript/jsmin.html


this is a one-way process though, and this should also be compared with 
the effect of compressing files while serving them.


/JM


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Javascript obfuscator and Zope

2006-01-04 Thread David H

Jean-Marc Orliaguet wrote:


Peter Bengtsson wrote:


It's not a Zope product but at least it's python.
http://www.issuetrackerproduct.com/Download#slimmer

It's basically a javascript whitespace optimiser
Compare
http://real.issuetrackerproduct.com/tw-sack.js
with the original:
http://www.issuetrackerproduct.com/tw-sack.js

More work can be done of course but I wanted to keep it relatively 
CPU fast.

It works on CSS and HTML too:
http://www.peterbe.com/stylesheet.css

 



there is minjs written in C too: 
http://www.crockford.com/javascript/jsmin.html


this is a one-way process though, and this should also be compared 
with the effect of compressing files while serving them.


/JM


Thanks Peter and Jean-Marc!
I'll take a look at these.
David
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )