this post was submitted on 21 Nov 2023
347 points (88.8% liked)
Firefox
18050 readers
184 users here now
A place to discuss the news and latest developments on the open-source browser Firefox
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Browser detection is rarely done through User Agent lookup anymore. Nowadays we determine browser through feature detection.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#avoiding_user_agent_detection
And yet in this case if I change my agent to any non-FF value while using FF, videos load immediately.
I set my agent back to FF, 5 second delay.
Doesn't matter what's the best way to do it in reality. UA is easily a possibility for any website. Nothing stopping it
How so?
Oh wow. This is a really bad script
Course it is, GPT made it.
.