Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26990 > unrolled thread

jQuery in 6 characters

Started byAny One <anyunoany1@gmail.com>
First post2015-03-04 13:02 -0800
Last post2015-04-01 18:25 -0700
Articles 3 — 3 participants

Back to article view | Back to comp.lang.javascript


Contents

  jQuery in 6 characters Any One <anyunoany1@gmail.com> - 2015-03-04 13:02 -0800
    Re: jQuery in 6 characters MASTER TROLL BAIT <0ntariokingston@gmail.com> - 2015-03-14 21:06 -0700
    Re: jQuery in 6 characters "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-04-01 18:25 -0700

#26990 — jQuery in 6 characters

FromAny One <anyunoany1@gmail.com>
Date2015-03-04 13:02 -0800
SubjectjQuery in 6 characters
Message-ID<82e1b79a-1824-4618-b6a7-94718a106366@googlegroups.com>
This is a version of jQuery consisting of only six nonalphanumeric characters: https://github.com/fasttime/jquery-screwed

The characters are ( ) [ ] + ! combined in a sequence that any browser is able to convert and evaulate back into the original jQuery library. You can grab the file jquery-2.1.3.screwed.js from the repository above and use it anywhere in place of jQuery.

This is a funny type of obfuscation, similar to brainfuck, and is not intended for use in production code.

The converter used is this one: http://jscrew.it - Write any JavaScript with 6 Characters: []()!+

[toc] | [next] | [standalone]


#27039

FromMASTER TROLL BAIT <0ntariokingston@gmail.com>
Date2015-03-14 21:06 -0700
Message-ID<5e1db02a-b699-411d-bbbe-c5294ba03ae7@googlegroups.com>
In reply to#26990
On Wednesday, March 4, 2015 at 4:02:34 PM UTC-5, Any One wrote:
> This is a version of jQuery consisting of only six nonalphanumeric characters: https://github.com/fasttime/jquery-screwed
> 
> The characters are ( ) [ ] + ! combined in a sequence that any browser is able to convert and evaulate back into the original jQuery library. You can grab the file jquery-2.1.3.screwed.js from the repository above and use it anywhere in place of jQuery.
> 
> This is a funny type of obfuscation, similar to brainfuck, and is not intended for use in production code.
> 
> The converter used is this one: http://jscrew.it - Write any JavaScript with 6 Characters: []()!+

Handy, make JQuery 2MB (2048 KB) instead of 100 KB. Make everything 2000 times bigger by using JSfuck codes, what a great idea. Might want to compress it on www.scriptcompress.com after or just pack Jquery there to less than half the size there (plus have it obfuscated)!

[toc] | [prev] | [next] | [standalone]


#27164

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2015-04-01 18:25 -0700
Message-ID<2c76c666-f7c6-4490-b622-09440795e38b@googlegroups.com>
In reply to#26990
On Wednesday, March 4, 2015 at 3:02:34 PM UTC-6, Any One wrote:
> This is a version of jQuery consisting of only six nonalphanumeric characters: https://github.com/fasttime/jquery-screwed
> 
> The characters are ( ) [ ] + ! combined in a sequence that any browser is able to convert and evaulate back into the original jQuery library. You can grab the file jquery-2.1.3.screwed.js from the repository above and use it anywhere in place of jQuery.
> 
> This is a funny type of obfuscation, similar to brainfuck, and is not intended for use in production code.
> 
> The converter used is this one: http://jscrew.it - Write any JavaScript with 6 Characters: []()!+

Cute. But I was surprised this didn't compress too well under gzip vs the original. Still ends up about twice as big it seems.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web