Keep it silly though

  • MrLLM@ani.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 hour ago
    Console cheat codes

    Tomater Brainer

    picture.onclick = eval(picture.onclick.toString().replace("/tomato.png", "https://images.freeimages.com/image/previews/ce8/color-stroke-brain-png-5691833.png"))
    

    Tomato minigun

    for (var i = 1; i < 99999; i++) window.clearInterval(i);let f = eval(updateTomato.toString().replace("return;", "pictureContainer.removeChild(tomato);return"));picture.onclick = eval(picture.onclick.toString().replace("updateTomato(tomato);", "f(tomato);"));setInterval(() => { document.querySelectorAll(".tomato").forEach(f); }, 10);picture.onmousemove = picture.onclick
    

    Slow-mo tomato

    for (var i = 1; i < 99999; i++) window.clearInterval(i);f = eval(updateTomato.toString().replace("2.0", "0.3").replace("tomato.angularMomentum", "1"));picture.onclick = eval(picture.onclick.toString().replace("updateTomato(tomato);", "f(tomato);"));setInterval(() => { document.querySelectorAll(".tomato").forEach(f); }, 10);
    

    I was thinking about making cheat codes for all your pages, but the tomato one just took me an embarrassing amount of time to work around.

    Congratulations, you’ve successfully stressed me out. Just kidding, nice page OP :)

    • MrLLM@ani.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      57 minutes ago
      OptiTomato

      Optimized tomato sauce

      for (var i = 1; i < 99999; i++) window.clearInterval(i);let f = eval(updateTomato.toString().replace('tomato.src = \"/splat.png\";', 'if (tomato.splat)return;tomato.src = \"/splat.png\";tomato.splat = true;'));picture.onclick = eval(picture.onclick.toString().replace("updateTomato(tomato);", "f(tomato);"));setInterval(() => { document.querySelectorAll(".tomato").forEach(f); }, 10);
      

      Optimized Tomato minigun (requieres Optimized tomato sauce hack)

      picture.onmousemove = picture.onclick
      

      Tomato cleaner

      let b = document.createElement("button");b.textContent = "Clear";b.onclick = () => { document.querySelectorAll(".tomato").forEach((t) => { t.remove(); }); };document.getElementsByClassName("col")[0].appendChild(b);