this post was submitted on 21 Nov 2023
1693 points (99.0% liked)
Technology
59587 readers
2478 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What do you mean by change user agent to chrome? Asking 4 a friend
For a specific how to, there's a bunch of firefox addons that do it, but the mozilla recommended one is this
https://addons.mozilla.org/en-US/firefox/addon/user-agent-string-switcher/
It's super easy to use, just open it and it gives a bunch of options.
This is my current (fake) user agent;
With two or three clicks, this is my new (fake) user agent;
A few more clicks;
And finally;
Now, that last one is making it look like I'm using internet explorer... Youtube videos will not load with that last one active. Claims my browser is too old and not supported.
I don't know why they all start with Mozilla/5.0 but the apparently a lot of websites will block your requests if you don't have it (or a valid browser strings like it?)
Almost all user agent strings start with that Mozilla prefix because Mozilla made the first browser with "fancy" features, so in the early internet many websites checked for that string to determine if they should serve the nice website or the stripped down version. Later when other browsers added the features, that also had to add that to their user string so users would get the right site. Which just cemented the practice.
Just a reminder to not use user agent switcher unless it's absolutely necessary, and if you do, limit it only for certain sites that need it. If enough people change their user agent, website operators will be like "See, no one use Firefox anymore. We shouldn't bother to support it anymore".
This is a good summary of this mess: https://webaim.org/blog/user-agent-string-history/
I personally like seeing Mozilla loud and proud in all the user agents.
It's a mess, but also an echo of history.
When you browse to a website, your browser passes info about itself to the server hosting that site. This info is intended to help the server provide the best rendering code for your browser. This is called your User Agent.
However, Google is using it here to identify Firefox users, and is apparently choosing to lump them all in a box called "adblock users" instead of trying to identify an ad blocker more accurately.
If you do change your user agent, I would use an extension that does it only on YouTube domains.
We want independent metrics to show rising Firefox use, not falling.
Yeah cool I’ll have a look. Any extensions spring to mind?
That's because they may use code to detect as blockers that is not legal in the EU, so they might have thought that they're super crafty and used markers such as user agent for their cool coercion delay code thingy
To add on
You can spoof this user agent to see if a website does something shady depending on which browser you're using.
So if you keep all other variables the same, and just toggle the user agent value, YouTube behaves differently
How can we do that?
I haven't tried it in a while, but I think there are browser extensions for it. Might need to ask someone else for how to do it these days