this post was submitted on 21 Nov 2023
488 points (98.6% liked)
Firefox
17902 readers
59 users here now
A place to discuss the news and latest developments on the open-source browser Firefox
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The user agent is in the request header, so it's known before any response is sent from YouTube.
I don't know if that's what they're doing, because it's not possible to know what their server code is doing, making it a far better place to hide sleazy code.
But the server outputs code for the browser to run. Doesn't matter what the server does as long as the browser gets there same output.
Server side they could stall based on the agent but it's not the case here. Whatever is happening seems to be client side.
The client code can be modified depending on the request headers before being returned by the server
They're looking at the code returned by the server with a chrome user-agent and it's the same.
They only said that snippet was present, not that all of the client code was the same