Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add new cosmetic procedural operator:
:nth-ancestor(n)
The purpose of this new `:nth-ancestor(n)` operator is to lookup the nth ancestor relative to the currently selected node. It is essentially equivalent to `:xpath(..)`, where ancestor distance is expressed as a number rather than a sequence of slash-separated `..`. The rationale to introduce this new procedural selector is to have a low overhead way to accomplish ancestor selection.
- Loading branch information
Showing
with
228 additions
and 180 deletions.
- +207 −171 src/js/contentscript.js
- +21 −9 src/js/static-ext-filtering.js
There are no files selected for viewing
Oops, something went wrong.