Fix comment toggler for Hacker News

Hacker News added a "clicky" class to the toggle buttons, so the
selector needs wildcard matching.
This commit is contained in:
Liam Hupfer 2022-02-24 14:54:18 -06:00
parent 69a9bd16db
commit 5d56819c7a

View file

@ -41,7 +41,7 @@
" "
"
" " Comment toggler for Reddit, Hacker News and Lobste.rs
" bind ;c hint -Jc [class*="expand"],[class="togg"],[class="comment_folder"]
" bind ;c hint -Jc [class*="expand"],[class*="togg"],[class="comment_folder"]
"
" " GitHub pull request checkout command to clipboard (only works if you're a collaborator or above)
" bind yp composite js document.getElementById("clone-help-step-1").textContent.replace("git checkout -b", "git checkout -B").replace("git pull ", "git fetch ") + "git reset --hard " + document.getElementById("clone-help-step-1").textContent.split(" ")[3].replace("-","/") | yank