Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.