From 9d73e974d82f6edd19990d79ddbd79ac776e4771 Mon Sep 17 00:00:00 2001 From: Imre Kristoffer Eilertsen Date: Thu, 27 Aug 2020 02:20:59 +0200 Subject: [PATCH] Added 2 syntaxes As per https://github.com/DandelionSprout/adfilt/issues/63#issuecomment-681145269 --- Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md b/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md index 42b5b9e34..342cb3521 100644 --- a/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md +++ b/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md @@ -13,9 +13,11 @@ * `#@#.`/`#@#`/`#@##`: Whitelists page elements to make them load. * `[href="text"]`: Finds page elements whose values in the F12 filetree console contains such a value. The value can be `href`, `id`, `class`, `type`, or numerous other things that are highlighted in brown in the F12 filetree. Does not support RegEx. * `[href^="text"]`: Finds page elements whose value *begins* with the text. +* `[href="text" i]`: Save as above, except case-insensitive. * `[href$="text"]`: Finds page elements whose value *ends* with the text. * `[href*="text"]`: Finds page elements whose value contains the text anywhere within it. -* `[href="text" i]`: Save as above, except case-insensitive. +* `[href~="text"]`: Finds page elements whose value contains the word (with spaces around it) anywhere within it. +* `[href|="text"]`: Same as `[href="text"]`, but can also select text that is then followed by a dash. * `: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.