tsurlfilter
tsurlfilter copied to clipboard
Invalid rule in test cases
If I understand correctly, the following rule is invalid in uBO syntax:
example.org##+js(setTimeout-defuser.js, [native code], 8000):matches-path(/page)
One test case uses this rule: https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/tsurlfilter/test/rules/rule-converter.test.ts#L569
Reference:
- from https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters#subjectmatches-patharg
subject: Can be a plain CSS selector, or a procedural cosmetic filter
related https://github.com/uBlockOrigin/uBlock-issues/issues/2465