3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Firefox Pranks!

Step 2Rick Rollr

Rick Rollr
Getting people to click on links that sends them to the Rick Roll video is hard. They're on to your silly ways, but what if there was a 2% chance that any link, on any page, would Rick Roll them? Yeah, it would drive 'em nuts.

Code:
if(Math.random() > 0.98){
   window.location.href = "http://www.google.com";
}

That's a 2% chance of your window being sent to the google page. Tweak the number between 0 and 1 for odds of it happening and the URL for the target video.

« Previous StepDownload PDFView All StepsNext Step »
10 comments
Apr 1, 2012. 4:19 PMapplepeave says:
I love the add on compiler. I have made like ten of these and are now looking to unleash them all.... Just need someone to mess with..
Jan 31, 2012. 8:35 AMJJohnson1701 says:
This is great, but the link to the all-in-one pack failed to download, and the Rick Rollr link was removed. I tried going to Roll Tube and recompiling the source with one of the other rick-roll videos, but it didn't work at all.

Would there be any chance of this being updated and re-released?
Apr 1, 2010. 2:35 PMindividual128 says:
Thanks for sharing these. So funny. I have played with changing the source code, which is great because I didn't know you could make Firefox add-ons so easily. I'd like to modify the Rick-roll code, but the link to the source seems to be broken. Could you check it please?

Thanks!
Apr 6, 2010. 3:40 PMindividual128 says:
Thanks so much. Brilliant, it worked a treat. I have set one up to redirect to that mind-numbingly awful batman thing: http://www.youtube.com/watch?v=NrmPehlHK3w

My wife is going to hate me ;)
Apr 1, 2010. 5:00 PMtanmanknex says:
Really?  Whatever.
Mar 19, 2010. 8:30 AMtravisttt says:
How could I change the link the person is sent to? Could I easily bother them with other random links?
Apr 1, 2010. 9:49 AMtravisttt says:
OK, I've become slightly smarter and have found where add-ons are stored. Inside of the firefox profile, where can I find this file?
Apr 3, 2009. 8:21 PMm4573rk3yb04rd says:
Does it only work on april fools day, or what?
Mar 31, 2010. 6:01 PMzascecs says:
Ahh, I guess every day is fine...
>=) 
Apr 26, 2009. 1:03 PMwatermelonhead says:
no, i downloaded the sarcasm enhancer a few days ago
Apr 3, 2009. 8:25 PMm4573rk3yb04rd says:
Is there any way to make it so that it's not on april fools day?
Apr 1, 2008. 2:27 PMNozeDive says:
Is it random, or is there a way to tell what links will roll 'em?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1413
Followers
146
Author:fungus amungus(my site)
I like to make things both useful and odd. The odd projects are usually more fun. I'm also the Content Manager here at Instructables. Follow @edabot for more