Skip to content

Instantly share code, notes, and snippets.

@frazras
Created May 15, 2015 16:17
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 frazras/16621dff8b6801ca5b3d to your computer and use it in GitHub Desktop.
Save frazras/16621dff8b6801ca5b3d to your computer and use it in GitHub Desktop.
I was too lazy to play the game at http://106.186.25.143/kuku-kube/en-3/ so I wrote this script to make it a bit easier. Just paste this in your browser console (right click - inspect element, console tab) then start the game
$("#box").click( function() {
$('#box').children().filter(function(){
if($('#box').children().first().css('backgroundColor')!=$(this).css('backgroundColor')){
$(this).css('background-color','lime');
$(this).css('border-width','5px');
$(this).css('border-color','red');
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment