Last active
July 23, 2025 00:05
-
-
Save Pakirava-Datsuma/e6b12df35f4276843297e3b372483a6a to your computer and use it in GitHub Desktop.
JS snippets for browser console
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
// concat youtube transcript | |
copy(Array.from(document.querySelectorAll("ytd-transcript-segment-renderer div yt-formatted-string")).reduce((acc, el) => acc + ` ` + el.textContent, ' ')) | |
// print unique commit authors | |
Array.from(new Set( | |
Array.from(document.querySelectorAll("a.commit-author")) | |
.map(a => '@'+a.textContent) | |
)) | |
.reduce((acc, el) => acc + el + ' ', '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment