Skip to content

Instantly share code, notes, and snippets.

@bloodyowl
Created February 1, 2013 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bloodyowl/4691792 to your computer and use it in GitHub Desktop.
Save bloodyowl/4691792 to your computer and use it in GitHub Desktop.
Whosmad
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