Skip to content

Instantly share code, notes, and snippets.

@jittagornp
Last active August 29, 2015 14:17
Show Gist options
  • Save jittagornp/b87931316600296d4f54 to your computer and use it in GitHub Desktop.
Save jittagornp/b87931316600296d4f54 to your computer and use it in GitHub Desktop.
kuku hack
var play = '.play-btn';
var el = '#box';
var time = '.time';
function check(){
var map = {};
$(el).children().each(function(){
var color = $(this).css('background-color');
map[color] = map[color] || { score : 0 };
map[color].score++;
map[color].$el = $(this);
});
for(var prop in map){
if(map[prop] && map[prop].score === 1){
map[prop].$el.click(); break;
}
}
}
function isExpire(){
var timeout = $(time).text();
return timeout == '0' || timeout == '';
}
$(play).click();
var itv = setInterval(function(){
if(isExpire()){
clearInterval(itv);
return;
}
check();
}, 1);
@jittagornp
Copy link
Author

เข้าไปที่เกมส์นี้ http://106.186.25.143/kuku-kube/en-3/
เอา code วางใน console

ขอให้สนุกครับ :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment