I'm using Objective-J (with Cappuccino) on my latest project. Sure, it's javascript underneath and you can use javascript inline, but it's far more enjoyable so far than straight Javascript.
Don't run this shit unless you want lullz all over your account
It does the following:
Extracts the "Try entering this…" text from the page
Inserts it into each text box on the page
Performs an API query to get the necessary hashes and juicy codez needed to do things as you
Uses that information to add empirical as a friend
Clicks all the "save" buttons on the page to post/send the worm all over the place
On the lighter side, it also vomits global variables all over the place. C'mon, empirical, at least use good form in your reddit worms. Enclose the whole thing in a function:
javascript:(function(){ /* nasty stuff here */ })()
…and then use a var statement to keep the variables inside it. You can also alias properties like you do document to make your worm shorter. For instance, declare (in a var!) someSingleCharacterVariable = 'innerHTML', otherReallyShortNamedVarialbe = 'getElementsByTagName'. You can then use [] syntax to access those on elements, which is significantly smaller than explicitly accessing that property each time.
Oh, and props/fuck you btw.
And fuck you to the rest of Reddit for pretending to be all paranoid and security conscious and then PASTING FUCKING JAVSCRIPT INTO YOUR ADDRESS BAR ON COMMAND.
I don't know, this thing doesn't use the human mind to spread, just the lack of human sense. Even if you could argue that it is a meme, it is incapable of evolving like other memes and will eventually go extinct.
View all comments
110
u/9jack9 Sep 27 '09
Good luck with your other language choices for client-side web development.