As a long-running fan of both practical jokes and the A-Team, I love April Fools' Day. So much, in fact, that it's like a birthday to me. And what kind of birthday would it be if I didn't give presents? Probably the day I was actually born.

Anyway, this is a jQuery plugin that lets you play one or more fun practical jokes on an unsuspecting visitor, and it's crazy easy to set up. Just check the usage below (It's commented, don't worry).

Usage

$(document).ready(function() { //  When the document is ready
	$.fool('rick'); //  Run the Rick Astley prank
});

Of course, if you really hate your users, you can run multiple pranks by calling $.fool with an object:

$.fool({
	hiddenVideos: true, //  Show some wonderfully annoying videos
	vanishingElements: true, //  Hide random elements as they interact
});

Pranks

Of course, Rick Astley is just the beginning. There's a whole range of fun options to use. Click any of the options to preview them.NOTE: These will ruin the browsing experience. Get ready to refresh.

fallingScrollbar: true,   //  Want the scrollbar to fall over?
rick: true,               //  The synonymous Rick Astley video, hidden off-screen
hiddenVideos: true,       //  Show some wonderfully annoying videos
vanishingElements: true,  //  Hide random elements as they interact
questionTime: true,       //  Sing Spongebob with your browser!
upsideDown: true,         //  Flip the page upside down!
h4xx0r: true,             //  Make the page 100% editable
wonky: true,              //  Make the page a little bit crooked
flash: true,              //  Makes the site flash on and off
crashAndBurn: true,       //  Runs an endless loop. This will kill your browser!
shutter: true,            //  Forces a shutter on the screen
unclickable: true,        //  Makes the page unclickable

Download

You're a bad, bad, person. But hey, aren't we all? The source code is on Github, but you can grab a copy here:

Go download it!

It's licensed under the :) licence, so go nuts.

A midnight project by Visual Idiot (yes, that's his name). Go stalk him on Twitter.
Tweet