YouTube has been spotted testing server-side ads, which could pose a problem to ad blockers.

  • polonius-rex@kbin.run
    link
    fedilink
    arrow-up
    219
    arrow-down
    1
    ·
    edit-2
    4 months ago
    www.youtube.com##+js(json-prune-fetch-response, playerAds adPlacements adSlots playerResponse.playerAds playerResponse.adPlacements playerResponse.adSlots, , propsToMatch, /player?)
    

    Click on uBO icon > ⚙ Dashboard button > Add the filter(s) in “My filters” pane > ✓ Apply changes > Open new tab and test again.

    from the reddit page idk if it works but most comments say it does

    and if it does, that’s fucking hilarious

    this will have taken a team months of work and one ublock dev just threw it in the toilet within an hour

    • downpunxx@fedia.ioOP
      link
      fedilink
      arrow-up
      85
      ·
      edit-2
      4 months ago

      ok, so i added this code to my ublock origin filter list, then went to youtube, and the injected ads were still showing up in about half the vids. closed firefox, reopened, same. rebooted my win11 machine, now the injected ads are NOT showing up any longer. not sure if youtube switched it off because they’re still beta testing this bullshit or if the code is working but it SEEMS to be working. if it stops i’ll come back to edit this comment. thanks for the tip man!

      • viking@infosec.pub
        link
        fedilink
        English
        arrow-up
        12
        ·
        4 months ago

        NewPipe works, so I’m sure reVanced can/could do it as well. SmartTube (Android TV exclusive) also implemented it weeks ago, I never have seen a single ad.

    • ColdWater@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 months ago

      I stll haven’t get any ads with just stock ubo but when it does I’ll try this filter, thanks