Created
November 10, 2021 21:02
-
-
Save shinespark/987510f00070718cd2b6b7dc48115c16 to your computer and use it in GitHub Desktop.
Lean Coffee用に ✅ が多い行をソートしてクリップボードにコピーするやつ。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: !(t => {const a = document.createElement("textarea"), s = document.getSelection();(a.textContent = t), document.body.appendChild(a), s.removeAllRanges(), a.select(), document.execCommand("copy"), s.removeAllRanges(), document.body.removeChild(a);})("- " + [...document.querySelectorAll("[class^=edit__PreviewWrapper] li")].filter(l => l.innerText.includes("✅")).map(l => l.innerText).map(l => l.replace("\n", " ")).sort((a, b) => {return b.match(/✅/g).length - a.match(/✅/g).length;}).join("\n- ")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment