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

  • polonius-rex@kbin.run
    link
    fedilink
    arrow-up
    266
    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
      104
      ·
      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!

      • sunzu@kbin.run
        link
        fedilink
        arrow-up
        4
        ·
        4 months ago

        I am amazed how they didn’t spell like others did in that market.

        Prolly should donate.

      • viking@infosec.pub
        link
        fedilink
        English
        arrow-up
        16
        ·
        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
      3
      ·
      4 months ago

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

    • Mercury@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      Do I need to add this filter or are the uBO devs going to update the extension to include it ootb?

      • polonius-rex@kbin.run
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        4 months ago

        i’d be shocked if they didn’t update it but i just timed myself doing it and it took less than 10 seconds