AdguardTeam / AdguardTeam/tsurlfilter

Allow to specify attributes without value in selector for HTML filtering rules

Aberta
#147 1 comentário 0 reações 1 responsável Atribuída a @slavaleleka Ver no GitHub
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.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.