Tuesday, March 29, 2011

UIBinder style de-obfuscator

I think I've found a trick and wanted input on if it'll screw anything else up.
The UIBinder is really really nice but the bundling of the stylesheets makes it totally undecipherable to see which style is being applied.
So I added a directive that preserved the name within the style using a content directive.

/*** before **/
.faqA { 
font-style: italic;
}

/*** after ***/
.faqA { 
content: "faqA";
font-style: italic;
}

This is the regex I used to replace everything within my style sheet.
find: ^\.\(.+\) {
replace with: \.\1 { \n\tcontent: "\1";

This is what it looks like obfuscated
.GLQWISYBLQ {
    content"faqA";
    font-styleitalic;
}

--
-- Andrew Stevko
===========
"If everything seems under control, you're just not going fast enough." M. Andretti



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment