Created
February 1, 2013 14:58
-
-
Save bloodyowl/4691792 to your computer and use it in GitHub Desktop.
Whosmad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
[].forEach.call( | |
document.querySelectorAll("*") | |
, function(a){ | |
setTimeout(function(){ | |
a.style.border = a.style.border == "" | |
? "" + Math.floor(Math.random()*6) + "px solid " + ["red", "blue", "green", "yellow", "purple"][Math.floor(Math.random()*6)] | |
: "" | |
setTimeout(arguments.callee, 300) | |
}, 300) | |
}) | |
// bookmarklet | |
javascript:[].forEach.call(document.querySelectorAll("*"),function(a){setTimeout(function(){a.style.border=""==a.style.border?""+Math.floor(6*Math.random())+"px solid "+["red","blue","green","yellow","purple"][Math.floor(6*Math.random())]:"",setTimeout(arguments.callee,300)},300)}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment