Merge pull request #4124 from hpfr/fix_hn_toggler

Fix comment toggler for Hacker News
This commit is contained in:
Oliver Blanthorn 2022-02-25 11:32:03 +00:00 committed by GitHub
commit f54a6aa391
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@
" " " "
" "
" " Comment toggler for Reddit, Hacker News and Lobste.rs " " 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) " " 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 " 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