• 0 Posts
  • 18 Comments
Joined 4 months ago
cake
Cake day: July 29th, 2024

help-circle

  • MrLLM@ani.socialto196@lemmy.blahaj.zonecompruleter
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 month 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);
    

  • MrLLM@ani.socialto196@lemmy.blahaj.zonecompruleter
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 month ago
    Cheat console codes

    Trap boy

    document.getElementById("catboy").src = "https://lemmy.world/pictrs/image/e4c85b56-2b11-4747-a63f-4e9366cb9505.png";
    

    Custom image hack

    let p = document.createElement("input");p.type = "file";p.onchange = () => { var r = new FileReader(); r.onload = (e) => { document.getElementById("catboy").src = e.target.result; }; r.readAsDataURL(p.files[0]); };document.getElementsByClassName("col")[0].appendChild(p);
    

    Endless rotation

    rpm = -3000;
    

    144 FPS unlocker

    for (var i = 1; i < 99999; i++) window.clearInterval(i);setInterval(() => { catboyImage.style.rotate = `${rot}deg`; rot += rpm / 60; while (rot > 360) rot -= 360; }, 1000 / 144);setInterval(() => { if (rpm > 0) rpm -= rpm / 100; rpmIndiCATor.innerHTML = Math.floor(rpm); }, 10);
    

    Autopilot

    setInterval(() => { rpm += parseInt(Math.random() * 100); }, 10);
    

  • MrLLM@ani.socialto196@lemmy.blahaj.zonecompruleter
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 month ago
    Console cheat codes

    Intermittent You’re Wrong

    let k = 1;setInterval(() => { var h = document.getElementsByTagName("h" + k)[0];k = k == 1 ? 6 : 1;let nh = document.createElement("h" + k);nh.textContent = h.textContent;h.replaceWith(nh) }, 500);
    

    DVD You’re Wrong

    let b = document.getElementsByTagName("body")[0];b.style.background = "#000";b.style.height = "100vh";let t = document.getElementsByClassName("col")[0]; let xa = 1; let ya = 1;let x = 0, y = 0;t.classList.remove("col");t.style.position = "absolute";setInterval(() => { var bp = b.getBoundingClientRect();var w = bp.width;var h = bp.height;if (x > w || x < 0) xa = x > w ? -1 : 1; if (y > h || y < 0) ya = y > h ? -1 : 1;x += xa;y += ya;t.style.top = y + "px";t.style.left = x + "px"; }, 5);t.style.transition = "color 1s";let fc = () => { return parseInt(Math.random() * 155) + 101; };let c = () => { return "rgb(" + fc() + "," + fc() + "," + fc() + ")"; };setInterval(() => { t.style.color = c() }, 1000);
    

    I gotta say that I loved the DVD result



  • MrLLM@ani.socialto196@lemmy.blahaj.zonecompruleter
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 month 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 :)