AdguardTeam / AdguardTeam/CoreLibs

Support position-based arguments for HTML filtering

Open
#1,893 0 comments 1 reaction 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

As commented in https://github.com/AdguardTeam/CoreLibs/issues/94#issuecomment-2241329288, sometimes tags can be distinguished only by their position but not their contents.

### Proposed solution

Support all or part of these in native CSS selector, or something equivalent:
```
nth-of-type
nth-child
nth-last-of-type
nth-last-child
+
~
```

### Alternative solution

More complicated, but possibly xpath may be an alternative

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.