Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    what's happened with this javaScript code

    Hi,
    I just downloaded 2 Mootools.js files. both of them are version 1.1 and they do the same. but I wonder why first one is 72 KB and second one is 34 KB.

    I want to know what's happen with the second file with less size, Is is compressed, Gziped, encrypted or something else and how can i do the reverse. I mean how can i convert a code like the one with 34 KB to the source file.

    I attached both files and I really appreciate if some one can help me.
    Attached Files Attached Files

  • #2
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    They're both compressed to some degree although the second one has been both fully compressed and obfuscated while the first one seems to be extra-space and randomly new-line compressed.

    This site here is a favorite of mine and does a good job on your first js file: http://elfz.laacz.lv/beautify/

    However, once a script file is obfuscated (variable and object names reduced), it's near-impossible to make sense of it unless you know specifically what's going on (or you have hours of spare time) and so your second JS file is a bit more difficult to decipher.
    Feel free to e-mail me if I forget to respond ;)
    ohsosexybrit@gmail.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •