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);

 

记一次无聊的视力测试
记一次无聊的视力测试
记一次无聊的视力测试

相关文章:

  • 2022-01-28
  • 2022-01-05
  • 2022-12-23
  • 2021-06-10
  • 2021-11-25
  • 2021-12-02
  • 2021-04-15
猜你喜欢
  • 2021-10-15
  • 2021-07-20
  • 2021-07-09
  • 2021-08-26
  • 2021-08-05
  • 2021-06-13
  • 2021-12-31
相关资源
相似解决方案