Fine-grained "$third-party" filter

Various discussions related to Adblock Plus development

Fine-grained "$third-party" filter

Postby nodyes » Sun Nov 17, 2013 3:02 pm

Similar previous discussions about this: ... 00145.html

In 2008, adp introduced "$third-party" filter, so scripts from other domains may be blocked, and I believe this is very good start. In reality however, many sites put their own resources under subdomains with similar names, i.e. "" may include scripts from "". Treating the later domain as external may break things, and $third-party filter is inappropriate here.

Noscript has something called "base 2nd level domains". It is not perfect applicable as pointed out in the above link, but it certainly gives a nice direction.

I'm thinking about adding a numerical parameter, such as "$third-party=1", to get a fine-grained control of the level of "externality". For example, given a site "", applying
$third-party=0 allows "" (current behavior)
$third-party=1 allows *
$third-party=2 allows *
$third-party= -1 allows *.com
$third-party= -2 allows * (which is the behavior of "2nd level domain" in Noscript)

Is this option possible to be implemented? :D

Return to Adblock Plus development

Who is online

Users browsing this forum: No registered users and 2 guests