function rand(min, max) {
return Math.random() * (max - min) + min;
}
function btn1() {
setTimeout(btn1, rand(1, 2) * 1000);
document.querySelector('a[class^="btn-attack"]').click();
}
function btn2() {
setTimeout(btn2, 30 * 1000);
setTimeout(btn3, rand(1, 2) * 1000);
document.querySelector('a[class^="btn-combat mr1 btn-skills"][href*="alivePanel-skillsBunch-0-skillBlock-1"]').click();
}
function btn3() {
document.querySelector('a[class^="btn-combat mr1"][href*="alivePanel-gadgetBlock"]').click();
}
btn1();
btn2();