3 ms·
Sounds like if CSS could allow matching by patterns, it could still block it out? I.e. something regex / wildcard like? Though performance probably would suffer
by shmerl 7y ago
Sounds like if CSS could allow matching by patterns, it could still block it out? I.e. something regex / wildcard like? Though performance probably would suffer.
More advanced ad blocker can probably use some AI, that could be trained with user's hints about what is an ad. Or it can use some OCR for that purpose. If you can recognize that it's labeled "Sponsored", so can ad blocker potentially.
- oferzelig 7y agoIt's tricky even for Javascript.
- jameshilliard 7y agoNot really, you just need a recursive filtering algorithm such as this: https://github.com/tiratatp/facebook_adblock/blob/master/src/main.js https://github.com/tiratatp/facebook_adblock/blob/master/src...
- deleted 7y ago[deleted]