Comment on Post title lol
Klear@quokk.au 2 days ago
What I want… No. What I need is a browser extension that would change every “lol” on every page into a small picture of a TIE Fighter. It would make that flyby noise if you put your mouse over it and you could blow it up by clicking.
eatCasserole@lemmy.world 2 days ago
Someone who’s good at computer, please make! I’m going
zout@fedia.io 2 days ago
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”
TIE Fighter Image: Replace the URL in content.js with a public domain image. Example:
TIE Fighter Image from Wikipedia
Sound Effect: Replace the URL with a .mp3 file hosted on your server. Example:
Sound Effect from FreeSound.org
🛠️ How to Use
Create the files:
manifest.json
content.js
Load the extension in Firefox:
Go to about:debugging in Firefox.
Click Add Extension and select the folder with your files.
Test on any website with “lol” text.
⚠️ Notes
Image/Sound URLs: Replace the URLs with your own hosted or public domain assets.
Performance: This script runs on every page, so consider optimizing for large sites.
Security: Ensure the image and sound URLs are secure to avoid errors.
This extension replaces “lol” with a TIE Fighter image, plays a sound on hover, and expands the image on click. Adjust the URLs to match your assets!
bountygiver@lemmy.ml 2 days ago
your LLM misunderstood the request, it is going to replace the entire sentence into the TIE fighter if it contains the “lol”, not just the part where it is “lol”. Also the “blow up” is not explosion, it thought it means “making it big”