Fixed the example for collapsing comments in Hacker News

Hacker News added an additional class which prevented the hint from matching correctly. By matching on any of the classes this is fixed.
This commit is contained in:
Simon 2023-10-07 16:41:15 +02:00 committed by GitHub
parent 608744bc36
commit 82581699ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5123,7 +5123,7 @@ const KILL_STACK: Element[] = []
Element selection flags: Element selection flags:
- -c [selector] hint links that match the css selector - -c [selector] hint links that match the css selector
- `bind ;c hint -c [class*="expand"],[class="togg"]` works particularly well on reddit and HN - `bind ;c hint -c [class*="expand"],[class*="togg"]` works particularly well on reddit and HN
- this works with most other hint modes, with the caveat that if other hint mode takes arguments your selector must contain no spaces, i.e. `hint -c[yourOtherFlag] [selector] [your other flag's arguments, which may contain spaces]` - this works with most other hint modes, with the caveat that if other hint mode takes arguments your selector must contain no spaces, i.e. `hint -c[yourOtherFlag] [selector] [your other flag's arguments, which may contain spaces]`
- -x [selector] exclude the matched elements from hinting - -x [selector] exclude the matched elements from hinting
- -f [text] hint links and inputs that display the given text - -f [text] hint links and inputs that display the given text