tsurlfilter
tsurlfilter copied to clipboard
AdGuard content blocking library
TSUrlFilter is currently not as efficient as it could be. It would be better to parse rules into AST once and use this AST in the converter, rule creation, and...
> I think that using [zod](https://www.npmjs.com/package/zod) instead of superstruct is better option for NodeNext. _Originally posted by @piquark6046 in https://github.com/AdguardTeam/tsurlfilter/issues/119#issuecomment-1975263866_
- https://github.com/uBlockOrigin/uBlock-issues/issues/3151 - https://github.com/uBlockOrigin/uAssets/issues/17807#issuecomment-1806971916
uBO now supports media queries. The tsurlfilter's converter does not support it yet. Reference: https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters#subjectmatches-mediaarg Examples: - ```adblock example.com###target-3 > .target-4:matches-media((min-width: 1920px) and (min-height: 930px)):style(color: red !important) ``` should be...
@ameshkov commented on [Tue Sep 06 2022](https://github.com/AdguardTeam/CoreLibs/issues/1667) Currently, we only discard `[Adblock`, we should discard more: `[AdBlock], [Adblock Plus], [uBlock] / [uBlock Origin], [AdGuard]` See there for the details: https://github.com/github/linguist/blob/bf853f1c663903e3ee35935189760191f1c45e1c/lib/linguist/heuristics.yml#L681-L700
- https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#strict3p - https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#strict1p
Currently, in the modifiers, we have to escape some special characters from the adblock syntax in the regexps. Two typical things cause misunderstandings: - the `$` sign - and the...
See https://github.com/AdguardTeam/CoreLibs/issues/1434 for details Can only be implemented in Firefox.
https://github.com/AdguardTeam/CoreLibs/issues/1850
reference: https://github.com/AdguardTeam/AGLint/issues/191