Skip to content

Instantly share code, notes, and snippets.

@s890081tonyhsu
Last active August 29, 2015 14:11
Show Gist options
  • Save s890081tonyhsu/4dab513d4683b7eba70a to your computer and use it in GitHub Desktop.
Save s890081tonyhsu/4dab513d4683b7eba70a to your computer and use it in GitHub Desktop.
看你有多色 - 小小外掛(比點擊速度)http://game.ioxapp.com/color/
$('header').append('<span class="btn btn-solve" onclick="Click()">SOLVE</span>');
function Click(){
var bg = $('#box span').css('backgroundColor');
$('#box span').each(function(){
if($(this).css('backgroundColor') !== bg){
$(this).css('backgroundColor', 'black');
return $(this).click();
}
});
return $('#box span')[0].click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment