this post was submitted on 25 Jan 2025
1440 points (99.0% liked)

Programmer Humor

27011 readers
1540 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] BroBot9000@lemmy.world 15 points 9 months ago (3 children)

I’m going to have to go down the rabbit hole of making my own website soon. Just curious but would there be an easy way to show a pop up just to people using chrome?

No reason in particular… 😏

[–] RedStrider@lemmy.world 17 points 9 months ago

lol i did something like what i assume your goal is on my neocities when i detect !!window.chrome === true

[–] Supervisor194@lemmy.world 14 points 9 months ago

Not sure if serious, but there's a million ways to do this, some that require importing thousands of lines of code and none of which are guaranteed to work in all possible circumstances. But here's a simple one.

[–] gamermanh@lemmy.dbzer0.com 6 points 9 months ago (1 children)

Im stupid Stones but I think it's in the user agent information, browser and version and other shit

[–] ClassifiedPancake@discuss.tchncs.de 6 points 9 months ago (1 children)

User agents cannot be fully trusted anymore since every browser puts every possible word in it so they are not excluded by anything.

[–] umbraroze@lemmy.world 1 points 8 months ago

Well, some browsers have made User-Agent strings useless. Technically, it's like this:

Firefox: "Mozilla based browser, Gecko engine, Firefox."

Chromium: "We're totally a Mozilla based browser we swear. Also KHTML, which is like Gecko basically. I guess also a bit like WebKit. Has anyone ever heard of those? No? OK. Fine, here's some actual information then..."