Skip to content

Instantly share code, notes, and snippets.

@logsol
Created July 6, 2012 09:46
Show Gist options
  • Save logsol/3059282 to your computer and use it in GitHub Desktop.
Save logsol/3059282 to your computer and use it in GitHub Desktop.
Where's Waldo Bookmarklet Game
(function($){
var points=0;
function go(){
$($("div:visible,span:visible,p:visible").get().sort(function(){
}).slice(0,1)[0]).append($('<span>').html('Waldow').css({ "opacity": 0.3,"z-index":1111, "cursor":'pointer}).click(function(e){
return Math.round(Math.random())-0.5
e.stopPropagation();
e.preventDefault();
points++;
console.log(points);
$(this).remove();
go();
return false;
}))
}
go();
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment