-
-
Save jittagornp/b87931316600296d4f54 to your computer and use it in GitHub Desktop.
kuku hack
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
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
เข้าไปที่เกมส์นี้ http://106.186.25.143/kuku-kube/en-3/
เอา code วางใน console
ขอให้สนุกครับ :)