AdguardTeam / AdguardTeam/CoreLibs

Allow negative selection of tagName (and possibly special attributes) for HTML filtering

Open
#1,935 0 comments 0 reactions 1 assignee Claimed by @sfionov View on GitHub
Feature request needs tech clarification Priority: P4
Dominant language
No language data
Stars
52
Forks
10
PR merge metrics
No merged PRs in 30d

Description

### Issue Details

In relation to https://github.com/AdguardTeam/CoreLibs/issues/1934 if scripts are like
```

```

allow to remove `test2.js` with something like `:not()` pseudo selector e.g. `example.org$$script[src="test"]:not([async])` and/or `example.org$$script[src="test"]:not([async=""])`.

### Proposed solution

Allow to select tags not having specified attirbute(s)/value(s) (or possibly special attributes such as `:contains()`)

### Alternative solution

CSS-like forward-, backward- , or exact matching to attributes (if not regex) will also help if possible.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.