5 ms·
compressed js -> syntax highlighter/prettyprinter -> view source Is that so hard?
by njharman 17y ago
compressed js -> syntax highlighter/prettyprinter -> view source
Is that so hard?
- mkyc 17y agoI agree, but yes it is: 1) you can't unscramble variable names, and 2) you have to prettyprint all js, even well-written js, or create a 'compression detection' algorithm.
- est 17y agoYou forgot escape & encoded and eval()'ed inline javascript in DOM that inserts a <script> tag that bootstraps another URL-rewrited dynamically generated .js. And the best part is, the .js can not be re-requested as it's it's taken cautions to prevent re-play attack.
- bretthoerner 17y agoIf it gets to the browser via HTTP then it's pretty trivial to intercept.