Lurker News

Comments (589) 300 threads

Show all comments

Showing thread 57 of 300

buryat2 replies#
If you want to speed run it

  let max = 1000000;
  let btn = $('.main-btn');
  function cl() {
    btn.click();
    max--;
    if (max > 0) {
       setTimeout(cl, 1)
    }
  }
  cl()
buryat#
I ended up stopping the execution using max=10 and then removing annoying elements using the web inspector and keep running. I really liked the subway surfers though
Terr_#
A small improvement would be to stop based on the balance, rather than a number of clicks, to avoid going into ludicrous Yes JS Numbers Are All Floats territory.

  let max_amt = 2000000000*2; // Twice most expensive item
  let btn = $('.main-btn');
  function cl() {
    btn.click();
    let curr = $(".main-stat-num").innerText.replace(/\D/g, '');
    if (curr  < max_amt) {
       setTimeout(cl, 1)
    }
  }
  cl()