this post was submitted on 21 Nov 2023
347 points (88.8% liked)

Firefox

17301 readers
49 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 

Edit: Replies to this thread indicate this is not fully correct as it exists on all browsers; and is likely an ad thing.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 60 points 1 year ago (1 children)

Whoever posted this is not a programmer. Does no conditional on that code so it would run on every browser on every session so where's the check for Firefox?

Unless they are claiming that it is injected at runtime. But that's easily provable/disprovable with agent spoofing.

[–] [email protected] 33 points 1 year ago* (last edited 1 year ago) (1 children)

In the demo I saw they did an agent spoofing to Chrome and the delay went away, but it didn’t look very extensively tested. As others said, the disappearance on reload could easily be because they thought he was returning to the page and had already seen the ad/been punished for not seeing the ad and so something ad-related disappeared instead.

[–] idunnololz 17 points 1 year ago (2 children)

Iirc the thing is it loads a different js file when it detects chrome which doesn't have the 5s delay. The reasoning is this is part of some anti adblocker code and chrome didn't need the extra logic.

[–] [email protected] 2 points 1 year ago

The code is still present when spoofing the user agent or even using a freshly installed chrome. The demo video loafing faster after spoofing can be due to many different reasons.

If you want a better break down of what the code could be used for, this guy foes a good job: https://old.reddit.com/r/firefox/comments/17ywbjj/whenever_i_open_a_youtube_video_in_a_new_tab_its/ka08uqj/

[–] [email protected] 1 points 1 year ago (1 children)

So it's got nothing to do with Firefox it's to do with preventing and blocking so it'll happen on Chrome as well.

[–] idunnololz 4 points 1 year ago (1 children)

Well chrome doesn't need the 5s delay.

[–] [email protected] 4 points 1 year ago

Chrome doesn't need a 5 second delay to implement ad blocking, or Chrome doesn't need a five second delay because it's Chrome?

Does an important difference here because one is anti-competitive and the other isn't.