this post was submitted on 20 Nov 2023
2050 points (98.1% liked)

Technology

59653 readers
3433 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. 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
[–] Rinox@feddit.it 193 points 1 year ago (4 children)
[–] Meltrax@lemmy.world 61 points 1 year ago (2 children)

This is some ultimate scumbaggery.

[–] filcuk@lemmy.zip 56 points 1 year ago (1 children)

This should be illegal, Firefox being their competition (tangentially)

[–] LufyCZ@lemmy.world 22 points 1 year ago

It honestly probably is

[–] Thermal_shocked@lemmy.world 0 points 1 year ago (1 children)

The thing that gets me is they think no one will ever find this stuff. There are hundreds of thousands of people (maybe more) who are actively looking ways to block ads and get around this behavior. There's no way it'll ever go unnoticed.

[–] Natanael@slrpnk.net 0 points 1 year ago (1 children)

They could literally have used some variance in implementation, server side bandwidth limitations, etc, but THIS is just blatantly obvious

[–] fossilesque@mander.xyz 0 points 1 year ago (1 children)

I wonder if it's a case of malicious compliance.

[–] A2PKXG@feddit.de 6 points 1 year ago (1 children)

Is there something like:

If(not chrome){add_delay()}

?

[–] TrippaSnippa@aussie.zone 3 points 1 year ago

No, the full context of the code snippet doesn't appear to check the browser user agent at all. Other comments have explained that it's most likely a lazy implementation of a check for ad blockers.

[–] creditCrazy@lemmy.world 5 points 1 year ago (1 children)

Ok so this is just client side I'd imagine I'd be pretty easy to make an addon that removes the code

[–] the_q@lemmy.world 9 points 1 year ago

That's not the point.

[–] ikidd@lemmy.world 1 points 1 year ago (1 children)

So this is part of a larger adblock checker, if the ad doesn't load within 5 seconds, it fails and triggers the adblocker warning. Since the ad should load in 3, they've set it for 5. If you have ubo, you won't see the warning that it then wants to pop up, it just seems (and is) a 5 second delay. Changing the UA probably removes this from Firefox because then the clientside scripts will attempt to use builtin Chrome functions that wouldn't need this hacky script to detect the adblock. Since they don't exist, it just carries on.

[–] localhost443@discuss.tchncs.de 1 points 1 year ago (1 children)

I was wondering how badly out of context the above quote must be considering the UA isn't checked in the function. Above poster is trying to construe it as a pure and simple permanent delay for Firefox.

That being said, the solution is still bullshit.

[–] CosmicCleric@lemmy.world -1 points 1 year ago

I was wondering how badly out of context the above quote must be considering the UA isn’t checked in the function. Above poster is trying to construe it as a pure and simple permanent delay for Firefox.

The UA check can happen before the function is called though.