Code Monkey home page Code Monkey logo

Comments (1)

lukemulks avatar lukemulks commented on June 8, 2024

@bbondy I made another sweep here just to make sure that things hadn't changed too much.

These are the following CSS selector/element hiding rules that ABP is using for Youtube that we currently don't block;

##.ad-div
##.masthead-ad-control
##.video-ads
###ad_creative_3
###footer-ads
###watch7-sidebar-ads
##.ytp-ad-progress-list
youtube.com##.ad-container
youtube.com###video-masthead
youtube.com###watch-channel-brand-div

These are the YT 1p calls, and filters that would work for blocking them:

=adunit&$xmlhttprequest,image

/gen_204

  • youtube-nocookie.com/gen_204

/player_204

  • youtube.com/player_204

/csi_204

  • youtube.com/csi_204

These are additional filters that blocked in ABP, we're using these already as far as I can tell, but am noting:

||doubleclick.net^$third-party,domain=youtube-nocookie.com|youtube.com
/securepubads.$script
/api/ads/*$script
||google.com/pagead/$image
/pagead2.$image,script
/pubads.$xmlhttprequest,subdocument
/googleads.$xmlhttprequest,image
/generate_204

I think that if we opened up to allow for 1p blocking, even if only for youtube.com - the issue at hand might remedy itself. That would probably be the best route we could take first.
If I can block strings from 1st parties, then we might also be able to block a lot of what ABP hits with their CSS selector rules without having to resort to CSS blocking.

  • I took a look in Opera today, with ad blocking on, and they're blocking the vast majority of ads. However, they are probably letting 1/9 ads in from what I observed.

  • ABP and AB are consistently blocking, uBO is as well, so I started with what rules they're using above.

  • If you're able to just remove the 1p blocking restriction for YT.com (or for the browser - even if it's just for a test build or something along those lines) - I can handle the rest of the testing and see what has to get resolved. I'm just stuck at that part.

from adblock-lists.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.