From 761d418f63e8356e3074f3d70aa4ef82936d1906 Mon Sep 17 00:00:00 2001 From: Imre Kristoffer Eilertsen Date: Mon, 20 Apr 2020 13:38:57 +0200 Subject: [PATCH] This is becoming a convoluted matter --- Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md b/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md index 5da77c1df..41dad1763 100644 --- a/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md +++ b/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md @@ -13,7 +13,7 @@ * `:not(.element)`: Finds page elements that doesn't contain a specified element or text string. Can be paired with other syntaxes à la `:not(:-abp-contains(Example text))`. * `:-abp-contains(text)`: Finds page elements that contains such text within it. * `:-abp-has(.element)`: Finds page elements that contains such an element within it. -* `:-abp-has(> .element)`: Tells `:-abp-has` to only find elements whose criteria match their immediate subelement. +* `:-abp-has(>`, a.k.a. `:-abp-has(:scope >` : Tells `:-abp-has` to only find elements whose criteria match their immediate subelement(s). * `:nth-of-type(n)` / `:nth-last-of-type(n)`: Finds page elements that are at a specific numerical position in a set. Note that `:nth-last-of-type(n)`'s numbering goes in reverse order. * `:only-of-type` / `first-of-type` / `:last-of-type`: Less versatile versions of the above, for which numbers can't be chosen. * `:first-child` / `:last-child`: Appears to be synonymous with `first-of-type` and `last-of-type` for adblocking purposes. @@ -57,9 +57,6 @@ * `! Version:` The version number/alphanumeric of the list. Unofficially used to distinguish which version of a list a user is using. Used administratively by Adblock Plus' list report system (which requires a number-only version value). Many lists choose to use `! Last modified` as well or instead. * `! Expires:`: Determines the timespan between each automated sync attempt with the list's source. Values are given in "n day/days". ABP also supports "hour/hours". -## Nano Adblocker, uBlock Origin, Adblock Plus and AdBlock only: -* `:-abp-has(:scope > .element)`: Very similar to `:-abp-has(> .element)`, but can select multiple levels of child elements, e.g. `:-abp-has(:scope > div > div > div)`. - ## Nano Adblocker, uBlock Origin and AdGuard only: #### Hiding * `:style`: Changes the CSS values of an element, in much the same way as what userstyle extensions like Stylish would've done.