Created
May 15, 2015 16:17
-
-
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
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
$("#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