this post was submitted on 04 Oct 2024
471 points (99.0% liked)

196

16338 readers
3213 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
471
compruleter (lemmy.ml)
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]
 

Keep it silly though

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 5 days 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);