As a 50 year old, my classic emoji’s are actual ascii emoticons.
zout
- 0 Posts
- 2 Comments
Joined 2 years ago
Cake day: March 16th, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
As a 50 year old, my classic emoji’s are actual ascii emoticons.
Your comment triggered me to ask an LLM to create it, and it came up with something. I’m not going to test it though, so we’ll never know if it works. I’d advise anyone not to try it. It gave links to an image and a sound file that gave a 404 error. LLM output:
Here’s a complete Firefox extension that replaces the text “lol” with a TIE Fighter image, plays a sound on hover, and changes the image on click.
🔧 Firefox Extension: “Lol to TIE Fighter”
{ "manifest_version": 2, "name": "Lol to TIE Fighter", "version": "1.0", "description": "Replaces 'lol' with a TIE Fighter image and plays sound on hover.", "permissions": [ "activeScript", "scripting", "https://example.com/*" ], "content_scripts": [ { "matches": ["<all_urls>"], "js": ["content.js"] } ], "background": { "scripts": ["background.js"] }, "options_page": "options.html" }document.addEventListener("DOMContentLoaded", function() { function replaceTextNodesWithImages() { const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null, false); let node; while (node = walker.nextNode()) { if (node.textContent.includes("lol")) { const img = document.createElement("img"); img.src = "https://example.com/tie-fighter.png"; // Replace with your image URL img.style.width = "20px"; img.style.height = "20px"; img.style.display = "inline-block"; img.style.cursor = "pointer"; // Sound on hover img.addEventListener("mouseover", () => playSound()); // Blow up on click img.addEventListener("click", () => blowUp(img)); node.replaceWith(img); } } } replaceTextNodesWithImages(); }); function playSound() { const audio = new Audio("https://example.com/sound.mp3"); // Replace with your sound URL audio.play(); } function blowUp(img) { img.src = "https://example.com/blowup.png"; // Replace with a larger image or "none" img.style.width = "40px"; img.style.height = "40px"; }