AdguardTeam / AdguardTeam/tsurlfilter
Add support for `:not(:matches-media(...))` uBO syntax
- Langage dominant
- TypeScript
- Étoiles
- 81
- Forks
- 20
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Problem description
During converting filters we noticed error:
```
failed to process rule: '[$path=/^((?!^/$).)*$/]dawn.fi#$#.header:not(:matches-media((min-width: 750px))) + div[class] + div[class] .mobile-top-ad { margin: -10px auto !important }' due to: uBO modifier ':matches-media(...)' cannot be nested
Stack trace:
AdblockSyntaxError: uBO modifier ':matches-media(...)' cannot be nested
```
Problematic rule is in the filter 233 - https://github.com/AdguardTeam/FiltersRegistry/blob/316be41f24afcf42db489865890cea0298fccc4d/platforms/extension/chromium-mv3/filters/233.txt#L22
### Proposed solution
We should support this format of usage modifiers from uBO
- - -
related:
https://github.com/AdguardTeam/FiltersRegistry/issues/1107
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.