5

I know I can block a particular element on a whole site with a rule like:

example.com##.blockedClass

Is there a way to do have particular elements only blocked on particular pages? I note that

example.com/path/*##.blockedClass

does not have the desired result (it seems to do nothing).

cpcallen
  • 151
  • 4
  • 1
    I asked the same question here: https://adblockplus.org/forum/viewtopic.php?f=23&t=57119&p=177214#p177214 Greasemonkey addon could do it with JavaScript but an easier solution would be better. – baptx Jun 12 '18 at 17:55

1 Answers1

2

This is done by adding :matches-path to your rule, e.g.:

example.com##tr:has-text(/done/):matches-path(sub/page)

This will block all tr on example.com/sub/page which contain the text 'done'.

Lutenist
  • 21
  • 3