- 2 Posts
- 24 Comments
pro-tip: putting image URLs in your comment like this:
makes the image show up in your comment rather than just the URLI ended up making a quick tampermonkey script to convert image links to image elements
this probably needs some work on the
isImageUrlfunction but it works for this instance at least haha(function() { Array.from(document.querySelectorAll('a')).filter(e => isImageUrl(e.href)).forEach(imageLink => { var imageElement = document.createElement('img'); imageElement.src = imageLink.href; imageLink.after(imageElement); imageLink.style.display = 'none' }); })(); function isImageUrl(input){ var url = new URL(input.toLowerCase()); return url.pathname.endsWith('.jpg') || url.pathname.endsWith('.png') || url.pathname.endsWith('.gif'); }oh and I guess it needs to be re-executed for when more comments are loaded by scrolling. in that case the already created image elements would double up, but you could just delete the original image link… it is quick and dirty after all
edit: V2 is here
(function() { console.log('script loaded'); setInterval(findAndReplaceImageLinks, 10); })(); function findAndReplaceImageLinks(){ Array.from(document.querySelectorAll('a')).filter(e => isImageUrl(e.href)).forEach(imageLink => { if (imageLink.classList == 'fst-italic link-dark link-opacity-75 link-opacity-100-hover'){ return; } //console.log(imageLink) var imageElement = document.createElement('img'); imageElement.src = imageLink.href; imageLink.after(imageElement); imageLink.remove(); console.log('image replaced'); }); } function isImageUrl(input){ var url = new URL(input.toLowerCase()); return url.pathname.endsWith('.jpg') || url.pathname.endsWith('.png') || url.pathname.endsWith('.gif'); }
meekah@discuss.tchncs.deto
Lemmy Shitpost@lemmy.world•words can't express how much i love the bush + happy trail combo
1·3 days agoI mean I agree this post doesn’t need the NSFW tag but I just wanna say, just because it’s on instagram doesn’t mean it’s not sexual content
I just looked it up, it seems I’m pretty average with my energy usage compared to others here in germany, considering the electric flow heater I have. I wonder why energy usage seems so much higher elsewhere
Personally I’m more of an Autism :1.6 guy
yearly, and I use LED light bulbs in the whole flat
I do haven an electric stove/oven, kettle, dishwasher and washing machine. Oh, and my warm tap water is also heated by electricity. Haven’t really considered those, but that’s definitely a good point, water takes tons of energy to heat after all
No HVAC here, I have gas heating and the only thing resembling AC in my flat is a fridge lol
This thread makes me question my 2,000kWh power bill, I don’t have any servers and always shut down my main PC over night. I do use a laptop as a media center that I don’t shut down, but I figured it can’t be using that much power.
Maybe the main factor is me being in home office and using my PC about 12-14h a day? 😅
Edit: Oh, I guess many people are talking monthly usage here. My number is over the last year, so I guess I’m not doing too bad
As far as I understand it, you need less brightness for the same result thanks to modern anti-glare coatings. Or use the same brightness for a better result.
I guess a similar reason as panel 2 in the image, to prevent the landlord from knowing you’re home because of overdue rent or something.
Some places have a slit in the door for letters, I guess that is what they’re talking about
Todesschnitzel
meekah@discuss.tchncs.deto
Lemmy Shitpost@lemmy.world•Size comparison between eagle talons and a human hand.
2·13 days agoLooking at it like that, it makes sense that birds are the only live descendands of dinosaurs
meekah@discuss.tchncs.deto
Lemmy Shitpost@lemmy.world•or rephrasing a sentence til i like how it sounds
3·14 days agoSometimes I restructure and rewrite the entire message like three times, it once took me 30 minutes to compose a message that ended up having like 5 sentences
meekah@discuss.tchncs.deto
Programmer Humor@programming.dev•Why I always keep doing it...
1·18 days agoThis genuinely happens regularly in our testing environment 🥲
Calypso protocol
Callisto Protocol?
I’d assume the spam protection for signing up is a lot tighter than the one for logging in
Masturbation is significantly better than bad sex with some you don’t care about.
Absolutely, had to find out the hard way.
Great reply all around



tbf it is clearly inspired by anime tho. those eyes, the skirt and the cat ears are pretty typical anime stuff