Skip to content

Instantly share code, notes, and snippets.

@Maple-pro
Last active October 14, 2021 08:25
Show Gist options
  • Save Maple-pro/bd93afd44f33ebbb8c6e4f2639114367 to your computer and use it in GitHub Desktop.
Save Maple-pro/bd93afd44f33ebbb8c6e4f2639114367 to your computer and use it in GitHub Desktop.
找色差游戏作弊小脚本 http://www.cuishuai.cc/game/
// http://www.cuishuai.cc/game/ 找色差游戏作弊小脚本
let intervalid = setInterval(function() {
const box = document.getElementById('box');
if (box && box.children.length >= 4) {
const base1 = box.children[0].style['backgroundColor'];
const base2 = box.children[1].style['backgroundColor'];
if (base1 === base2) {
for (let i = 1; i < box.children.length; i++) {
const now = box.children[i].style['backgroundColor'];
if (base1 !== now) {
box.children[i].click();
break;
}
}
}
else {
const base3 = box.children[2].style['backgroundColor'];
if (base1 === base3) {
box.children[1].click();
}
else {
box.children[0].click();
}
}
}
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment