From 20a2ae74add1b7dd1f670f82c8c81f3eaad06dd6 Mon Sep 17 00:00:00 2001 From: gwarser Date: Mon, 9 Mar 2020 14:45:20 +0100 Subject: [PATCH] Add few examples --- Procedural-cosmetic-filters.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Procedural-cosmetic-filters.md b/Procedural-cosmetic-filters.md index 260868d..0978888 100644 --- a/Procedural-cosmetic-filters.md +++ b/Procedural-cosmetic-filters.md @@ -147,11 +147,11 @@ Introduced in uBO [1.18.17rc1](https://github.com/gorhill/uBlock/commit/73e2f25e - A valid plain CSS selector. - Examples: - 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. -See also [`Element.closest()` ↪](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest) - *** ### `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. - Chainable: No. - _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)