Keep it silly though

    • mvirts@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 months ago

      Excellent work! I formally propose an easter egg that changes the image to tow-mater from cars the movie.

      • ALQ@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        2 months ago

        I dunno, I think the result is fabulous. I still don’t know why everyone was so obsessed with tomatoes, but this website is great fun.

    • MrLLM@ani.social
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      2 months 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
        ·
        2 months 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);
        
    • Blubber28@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 months ago

      This would especially be great if one could upload their photos but if you decide to include a few of your own please add a photo of trump.

      Bonus if you make an easter egg where when you throw one tomato at trump it doesn’t apply a tomato effect and instead changes to the picture of him being shot.

  • Nailbar@sopuli.xyz
    link
    fedilink
    arrow-up
    49
    ·
    2 months ago

    Make one that just says you’re wrong. Then we can always go “Oh yeah? Well this website says you’re wrong”

      • nope@jlai.lu
        link
        fedilink
        arrow-up
        5
        ·
        2 months ago

        Oooh maybe it could take in a name as query parameter so it would say “Sorry [name], you’re wrong”

      • MrLLM@ani.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months 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

  • catsup
    link
    fedilink
    arrow-up
    41
    ·
    2 months ago

    Website where you click a catboy to make him spin, and the faster you click the faster he spins

      • MrLLM@ani.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months 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);
        
  • ALQ@lemmy.world
    link
    fedilink
    arrow-up
    33
    ·
    2 months ago

    Since everyone here is obsessed with tomatoes, I suggest a site that has the visitors vote on whether it’s a fruit or a vegetable, and then just redirects to a dancing tomato instead of the results.

  • TehBamski@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 months ago

    A website where you are shown 3 images of three different writing pens. You are tasked with guessing which pen is the most expensive.

  • superkret@feddit.org
    link
    fedilink
    arrow-up
    16
    ·
    2 months ago

    pull a random image from imgflip and a random text from `fortune-mod’, add it as caption and post the result when you click a button.

    • lelgenio@lemmy.mlOP
      link
      fedilink
      arrow-up
      13
      ·
      2 months ago

      I’m not quite sure how that could be done…

      I can’t modify the contents of other websites embedded as iframes. The other option would be to make a request in my server and modify the content and then pass that, but then I’d be hosting an unsecured proxy which I don’t want to do.

      The only good way to do this would be with a browser extension, which I haven’t got a clue on how to create. :/

  • averyminya@beehaw.org
    link
    fedilink
    arrow-up
    14
    ·
    2 months ago

    A website that asks for 4 check boxes to be marked, to progress to the next page (maybe for a million dollars?)

    But every time you add the check to the fourth checkbox, one of the other checkboxes unmarks itself. So you click that one, and a different one unmarks. Lol.

    • SynopsisTantilize@lemm.ee
      link
      fedilink
      arrow-up
      12
      ·
      2 months ago

      I’ll contribute some clicks to this. Make a single ad at the bottom of the page that rotates every time the 4th box resets, but only ads for Lemmy