Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doRound() {
- var stats = [];
- $(".egg-stat").each(function () {
- var title = $(this).attr("title");
- title && stats.push(parseInt(title, 10));
- });
- var i = stats.indexOf(Math.min.apply(Math, stats));
- var buttons = $(".egg-action").find("button");
- buttons[i].click();
- }
- window.setInterval(doRound, 7000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement