Created
March 26, 2026 07:41
-
-
Save darkcolonist/b466f8568e945479c63fa97a150d1a73 to your computer and use it in GitHub Desktop.
discord web: take all threads
This file contains hidden or 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
| async function collectAll() { | |
| let scroller = document.querySelector('#channels'); | |
| let seen = new Set(); | |
| // Scroll to top | |
| scroller.scrollTop = 0; | |
| await new Promise(r => setTimeout(r, 1000)); | |
| // Scroll down until end | |
| let lastScrollTop = -1; | |
| while (scroller.scrollTop !== lastScrollTop) { | |
| lastScrollTop = scroller.scrollTop; | |
| scroller.scrollBy(0, 500); | |
| await new Promise(r => setTimeout(r, 500)); | |
| document.querySelectorAll('.name__2ea32').forEach(el => seen.add(el.innerText)); | |
| } | |
| console.log([...seen].join("\n")); | |
| } | |
| collectAll(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment