I wrote a quick and dirty auto-clicker for the StackEgg. Any comments, both on code and effectiveness?function doRound() {    var stats = [];    $(.egg-stat).each(function () {        // Find the number of hearts for each stat.        var title = $(this).attr(title);        title && stats.push(parseInt(title, 10));    });    // Find the lowest stat and click the button next to it.    var i = stats.indexOf(Math.min.apply(Math, stats));    var buttons = $(.egg-action).find(button);    buttons[i].click();}window.setInterval(doRound, 7000);
StackEgg autoclicker
javascript;jquery;stackexchange