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

  • Superb
    link
    English
    1857 months ago

    If the person who tweeted this scrolled down in the hackernews thread, they’d see this code was misinterpreted. It’s part of an anti Adblock script that runs 5s after page load. Still shitty, but less insidious

    • Johanno
      link
      fedilink
      12
      edit-2
      7 months ago

      Oh they think that delay in the beginning is malicious .

      I noticed a huge drop in bandwidth until I logged out of YouTube. This was a onetimer however.

  • @HeChomk@lemmy.world
    link
    fedilink
    English
    797 months ago

    Don’t use the youtube website. On any browser. Use freetube instead, if your situation and use case allows it. No Google bullshit required. Loads fast, no ads, no tracking. Fully self contained.

    • Virkkunen
      link
      fedilink
      577 months ago

      I really appreciate you saying “if your situation and use case allows it”. I’m sick of people “suggesting” these kind of things by just saying “don’t do this” “stop doing that” while completely ignoring that not everyone has the same use cases, preferences and possibilities for such.

    • @CluckN@lemmy.world
      link
      fedilink
      57 months ago

      Does freetube show recommendations? Most free clients seem to scrape your subscriptions and lack features like playlists.

    • @Fisch@lemmy.ml
      link
      fedilink
      57 months ago

      I wish there was a GTK Piped client. Freetube has that kinda janky feeling of a browser (it’s an Electron app, so not surprising) and I don’t see why I wouldn’t just use Piped in a browser then.

  • Echo Dot
    link
    fedilink
    687 months ago

    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.

    • @heavyboots@lemmy.ml
      link
      fedilink
      English
      36
      edit-2
      7 months ago

      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.

  • @Boomkop3@reddthat.com
    link
    fedilink
    327 months ago

    It would not be the first time Google was caught doing this. A couple years ago they were caught breaking apps like google maps if your user agent string wasnt chrome.

    But recently I’ve noticed they can tell regardless of that string. So my guess is that they’ve hidden fingerprinting code in the chrome browser

  • @ToxicWaste@lemm.ee
    link
    fedilink
    247 months ago

    This is not correct.

    Most of the posts/articles reference following reddit post: https://old.reddit.com/r/firefox/comments/17ywbjj/whenever_i_open_a_youtube_video_in_a_new_tab_its/k9w3ei4/ . It shows the code from your screenshot. However the code does not check the user agent and is not injected server side (I checked by user agent spoofing and using a freshly installed chrome). So it will run on every browser and cannot be used against some specific ones.

    There is an answer to the post everyone seems to reference, which goes a bit deeper into what the code could do: https://old.reddit.com/r/firefox/comments/17ywbjj/whenever_i_open_a_youtube_video_in_a_new_tab_its/ka08uqj/

  • Chemical Wonka
    link
    fedilink
    English
    97 months ago

    I will make a call to a friend of mine called EU to solve this problem.