JavaScript April Fools Joke

527 views
Skip to first unread message

Bret Little

unread,
Mar 1, 2013, 5:29:06 PM3/1/13
to uta...@googlegroups.com
If you could arbitrarily execute JavaScript code on somebody else's computer in the context of the web pages they visited, what would be a good prank to pull? (Hopefully, nothing too malicious. . . .)

Matthew Nielsen (Gmail)

unread,
Mar 1, 2013, 5:31:33 PM3/1/13
to uta...@googlegroups.com
I have very much wanted to find a way to implement the "Harlem Shake" on a web page: music starts, one word of a text element starts to "wiggle", then the bass drops and all the other words are transformed into  Comic Sans or Webdings and start jumping around.
 
On Mar 1, 2013, at 3:29 PM, Bret Little <bret....@gmail.com> wrote:

If you could arbitrarily execute JavaScript code on somebody else's computer in the context of the web pages they visited, what would be a good prank to pull? (Hopefully, nothing too malicious. . . .)

--
Lunches rotate cities on Wednesdays. Meets on the first thrusday of each month http://utahjs.com/location/
---
You received this message because you are subscribed to the Google Groups "Utah JavaScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to utahjs+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/utahjs?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Brian J. Rogers

unread,
Mar 1, 2013, 5:32:33 PM3/1/13
to uta...@googlegroups.com
In the same fashion YouTube does right now when you go to their site and search 'do the harlem shake'?

Brandon Pedersen

unread,
Mar 1, 2013, 6:04:28 PM3/1/13
to uta...@googlegroups.com

Bret Little

unread,
Mar 1, 2013, 6:40:59 PM3/1/13
to uta...@googlegroups.com
How about running this script (jquery needed):

$("img").each(function() {
var $img = $(this);
$img.attr("src", "http://placekitten.com/" + $img.width() + "/" + $img.height());
});

Run that on ksl.com :D

Ryan Shaw

unread,
Mar 2, 2013, 12:29:40 AM3/2/13
to uta...@googlegroups.com

Lukas Olson

unread,
Mar 1, 2013, 6:44:37 PM3/1/13
to uta...@googlegroups.com


Lukas Olson


You received this message because you are subscribed to a topic in the Google Groups "Utah JavaScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/utahjs/hVCIKUYCWqg/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to utahjs+un...@googlegroups.com.

Jamison Dance

unread,
Mar 7, 2013, 12:42:59 PM3/7/13
to uta...@googlegroups.com
And now we know that Luke just checked his email. :)

On Fri, Mar 1, 2013 at 4:28 PM, Lukas Olson <olson...@gmail.com> wrote:
$("img").each(function() {
var $img = $(this);
$img.attr("src", "http://placekitten.com/" + $img.width() + "/" + $img.height());
});

--

Lukas Olson

unread,
Mar 7, 2013, 12:44:47 PM3/7/13
to uta...@googlegroups.com
Or perhaps that finally all of my previous posts were approved. :)

AJ ONeal

unread,
Mar 7, 2013, 12:44:27 PM3/7/13
to UtahJS
Actually it was just that he was a first-time poster and no one has checked the pending queue for 6 days.
Reply all
Reply to author
Forward
0 new messages