10

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
  • 201

1 Answers1

8

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'.