9

Look at the name of the classes in the html block. They have been encoded to make it hard to understand.

<div id=":21r" class="ii gt m14b0b8af41495ba9 adP adO">
    <div id=":21o" class="a3s" style="overflow: hidden;">
        <div dir="ltr">
            <div class="adL"></div>
        </div>
    </div>
</div>

I don't think Google engineers are so jobless to encode classes like these manually. They must have used some tools for encoding the classes. Is there any service available for doing this?

5
  • I'd be more interested in finding out why they do it.
    – Alternatex
    Commented Jan 21, 2015 at 12:52
  • 1
    To provide more security. Names are hackable and understandable.
    – jackkorbin
    Commented Jan 26, 2015 at 16:51
  • 2
    @jackkorbin question was "How" not "Why"
    – Vishnu Ks
    Commented Jan 26, 2015 at 21:54
  • 1
    @VishnuKs C'mon dude read the first comment -_-
    – jackkorbin
    Commented Jan 27, 2015 at 5:52
  • This is a self answered question. They have made it hard to encode. Exactly because they don't want you copying them, nor copying that.
    – user5306470
    Commented Nov 6, 2015 at 1:24

1 Answer 1

1

It is very possible that what you are looking at was built in Google Web Toolkit. This environment has automatic Obfuscation depending on what you are looking to release into the world, and is the main environment used by Google when creating web applications.

The process is to write your files normally with your own class and id names, and when you compile the code is automatically obfuscated (or you run it through a compressor or program to do so).

In GWT you have to write in Java, but if you are looking for options for javascript or html/css then:

http://ajaxian.com/archives/utility-javascript-obfuscator https://code.google.com/p/minify/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.