Add few examples

gwarser 2020-03-09 14:45:20 +01:00
parent dfd45efa46
commit 20a2ae74ad
1 changed files with 4 additions and 2 deletions

@ -147,11 +147,11 @@ Introduced in uBO [1.18.17rc1](https://github.com/gorhill/uBlock/commit/73e2f25e
- A valid plain CSS selector. - A valid plain CSS selector.
- Examples: - Examples:
- Existing filter: `fastbay.org##.detLink:has-text(VPN):xpath(../../..)` can be rewritten as `fastbay.org##.detLink:has-text(VPN):upward(3)` - Existing filter: `fastbay.org##.detLink:has-text(VPN):xpath(../../..)` can be rewritten as `fastbay.org##.detLink:has-text(VPN):upward(3)`
- `gorhill.github.io###pcf #a19 b:upward(2)`
- `gorhill.github.io###pcf #a20 b:upward(.fail)`
Introduced in uBO [1.25.3b0](https://github.com/gorhill/uBlock/commit/72bb70056843024b1a31fe1ab9c90bd4e8260ba2). Evolution of [`:nth-ancestor(n)`](#subjectnth-ancestorn) selector. Introduced in uBO [1.25.3b0](https://github.com/gorhill/uBlock/commit/72bb70056843024b1a31fe1ab9c90bd4e8260ba2). Evolution of [`:nth-ancestor(n)`](#subjectnth-ancestorn) selector.
See also [`Element.closest()` ↪](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest)
*** ***
### `subject:remove()` ### `subject:remove()`
@ -159,6 +159,8 @@ See also [`Element.closest()` ↪](https://developer.mozilla.org/en-US/docs/Web/
- Description: remove elements from the DOM tree. - Description: remove elements from the DOM tree.
- Chainable: No. - Chainable: No.
- _subject_: Can be a plain CSS selector, or a procedural cosmetic filter. - _subject_: Can be a plain CSS selector, or a procedural cosmetic filter.
- Examples:
- `gorhill.github.io###pcf #a18 .fail:remove()`
Introduced in uBO [1.25.3b0](https://github.com/gorhill/uBlock/commit/72bb70056843024b1a31fe1ab9c90bd4e8260ba2). Fixes [#2252](https://github.com/gorhill/uBlock/issues/2252) Introduced in uBO [1.25.3b0](https://github.com/gorhill/uBlock/commit/72bb70056843024b1a31fe1ab9c90bd4e8260ba2). Fixes [#2252](https://github.com/gorhill/uBlock/issues/2252)