http://www.lezyo.com/special/game/color/?from=singlemessage&isappinstalled=

 

Chrome:

F12-Console输入

setInterval(function () {
var first = '';
var firstCount = 0;
var firstIndex = 0;

var second = '';
var secondCount = 0;
var secondIndex = 0;
$("#box").children("span").each(function (i) {
if (i == 0) {
first = $(this).css("background-color");
firstIndex = i;
firstCount++;
return;
}

if (first == $(this).css("background-color")) {
firstIndex = i;
firstCount++;
} else {
second == $(this).css("background-color");
secondIndex = i;
second++;
}
});
if (firstCount == 1) {
$("#box").children("span").eq(firstIndex).click();
} else {
$("#box").children("span").eq(secondIndex).click();
}
}, 1);

 

posted on 2015-07-24 16:15  Jerryz  阅读(287)  评论(0编辑  收藏  举报
Top
收藏
关注
评论