Some questions about filter/easy list syntax.

Various discussions related to filter list maintenance

Moderator: njones

Post Reply
karan173
Posts: 1
Joined: Thu Mar 16, 2017 11:27 pm

Some questions about filter/easy list syntax.

Post by karan173 »

I read en/filters and filter-cheatsheet and had some questions regarding the rule syntax:

1) $domain option is used to specify a list of domains on which the rule is active. Does this correspond to the domain of the frame requesting the resource or the top level frame of the web page which requested the resource or all of the "ancestor" urls?

For example,
if A.com has a frame from B.com which has a frame from C.com which requests a resource from D.com

will the rule

||D.com^$domain=B.com

be matched when requesting the resource from D.com?

Also, what is the significance of the domain option for the top level page load?

2) $document is used to disable AdblockPlus on the urls specified by the pattern. However, I am not sure what happens when $document is combined with other options. For example, can someone explain what does the following rule achieve?

B.com/abc$document,subdocument,domain=A.com
Post Reply