From c67b003fdd15b815183af019dc90e87d8b1b08ab Mon Sep 17 00:00:00 2001 From: Imre Kristoffer Eilertsen Date: Sun, 2 Feb 2020 07:25:25 +0100 Subject: [PATCH] Split up the "nth-of-type" info As per https://github.com/DandelionSprout/adfilt/issues/7#issuecomment-581060448 and https://github.com/DandelionSprout/adfilt/issues/7#issuecomment-581103496. --- Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md b/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md index f47ffbef8..ba92a9a57 100644 --- a/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md +++ b/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md @@ -13,7 +13,8 @@ * `: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. -* `:nth-of-type(n)` / `:last-of-type` / `:only-of-type`: Finds page elements that are at a specific numerical position in a set. +* `: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. * `:before` / `:after`: Removes the pseudo-elements that belong to a page element. * `>`: Creates chain criteria, in which a selected page element must have a specific element above it in the filetree. * `+`: Blocks the element that is right below the criteria in the filetree. Example: `##.element + div` blocks that particular `div`.