this post was submitted on 20 Sep 2024
453 points (98.3% liked)

Programmer Humor

19623 readers
85 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 1 year ago
MODERATORS
 

alt textCaption

Web dev: What browser is visiting the page?

User agent string:

A screenshot of a browser. The URL bar reads firefox://settings, a button on the URL bar is labelled Netscape, a popup from the button reads: "You're viewing a secure Opera page", and the web page title reads "Chrome settings".

you are viewing a single comment's thread
view the rest of the comments
[–] Quacksalber@sh.itjust.works 16 points 2 months ago (6 children)

Youtube currently (for weeks now) does not work on Firefox, if you don't use a Firefox user agent. Google doing sketchy things again.

[–] KairuByte@lemmy.dbzer0.com 33 points 2 months ago (1 children)

I’ve not run into this issue and use Firefox exclusively with ublock origin

[–] Quacksalber@sh.itjust.works 1 points 2 months ago (1 children)

I use Charmeleon, with the effects described above.

[–] Carighan@lemmy.world 0 points 2 months ago* (last edited 2 months ago)

So you don't use Firefox, you mess with Firefox. That's on you then. Devs can't be held responsible for you intentionally breaking things. Only do what you know works.

[–] tyler@programming.dev 18 points 2 months ago

YouTube works fine on Firefox…

[–] Carighan@lemmy.world 8 points 2 months ago (1 children)
[–] Quacksalber@sh.itjust.works 1 points 2 months ago (1 children)

What works? YT on Firefox or YT on Firefox when the user agent is changed?

[–] Carighan@lemmy.world 6 points 2 months ago

Both. I use YT on Firefox constantly, and I just explicitly tried again with a swapped user agent, and there's no issues at all, works perfectly as expected. I saw from your other reply that you use a fairly involved and heavily modifying expansion, not just a user agent switcher.

If you try to "harden" your FF, always keep in mind that a large portion of that means absolutely breaking things left and right and center. It might work, but always expect it will not. Because it's just not something anybody would ever test for when creating web pages. So you're running essentially unknown scenarios. It might be interesting input to the extension-author that this breaks, though. It might be something they think they got working. Of course, it could also be that it's "Yeah that happens, it's intentional". But might as well report it to them.

[–] RustyNova@lemmy.world 3 points 2 months ago (1 children)

Uh... I use librewolf that force a chrome + windows user agent and its totally fine?

[–] Quacksalber@sh.itjust.works 1 points 2 months ago

Then charmeleon must change more than just the user agent

[–] HeyThisIsntTheYMCA@lemmy.world 1 points 2 months ago

? I just tested and it worked fine.

[–] Boomkop3@reddthat.com 1 points 1 month ago

again? Did they stop anytime recently?