1042
you are viewing a single comment's thread
view the rest of the comments
[-] LoafyLemon@kbin.social 106 points 1 year ago* (last edited 1 year ago)

You absolutely can tell what's happening by reading the source code. They are using a listener and a delay for when ontimeupdate promise is not met, which timeouts the entire connection for 5 full seconds.

https://pastebin.com/TqjzbqQE

[-] schwim@reddthat.com 17 points 1 year ago

I'm sorry but I don't see how that check is browser-specific. Is that part happening on the browser side?

[-] PoliticalAgitator@lemm.ee 29 points 1 year ago

They don't need to put incriminating "if Firefox" statements in their code -- the initial page request would have included the user agent and it would be trivial to serve different JavaScript based on what it said.

[-] phx@lemmy.ca 26 points 1 year ago

Easy enough to test though. Load the page with a UA changer and see if it still shows up when Firefox pretends to be Chrome

[-] TastehWaffleZ@lemmy.world 28 points 1 year ago* (last edited 1 year ago)

The video in the linked article does just that. The page takes 5 seconds to load the video, the user changes the UA, they refresh the page and suddenly the video loads instantly. I would have liked to see them change the UA back to Firefox to prove it's not some weird caching issue though

[-] phx@lemmy.ca 6 points 1 year ago

Yeah, and also Edge or an older version of Chrome etc just to be sure.

[-] nixcamic@lemmy.world 8 points 1 year ago

I guess his question is "is that happening?"

[-] Karyoplasma@discuss.tchncs.de 9 points 1 year ago

Well, at least I learned that javascript understands exponential notation. I never even bothered to try that lol

[-] 257m@sh.itjust.works 2 points 1 year ago

Can I have ublock block that? It seems simple enough to extract that code out.

this post was submitted on 20 Nov 2023
1042 points (98.0% liked)

Technology

34988 readers
392 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS