AdguardTeam / AdguardTeam/tsurlfilter
Allow to specify attributes without value in selector for HTML filtering rules
Aberta
enhancement
Middle+
Priority: P4
Resolution: Fixed
Status: Resolved
Version: AdGuard v5.2
- Linguagem predominante
- TypeScript
- Estrelas
- 81
- Forks
- 20
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
There are two cases for this:
- removing elements by matching attributes without values
- removing elements by matching attributes by name only, no matter what their values are
So the rule:
```adguard
example.org$$script[defer]
```
should remove the element:
```html
```
and the rule:
```adguard
example.org$$div[some_attribute]
```
should remove both elements:
```html
...
...
```
Related CoreLibs task: https://github.com/AdguardTeam/CoreLibs/issues/1934
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.