Skip to content

Instantly share code, notes, and snippets.

@Pakirava-Datsuma
Last active July 23, 2025 00:05
Show Gist options
  • Save Pakirava-Datsuma/e6b12df35f4276843297e3b372483a6a to your computer and use it in GitHub Desktop.
Save Pakirava-Datsuma/e6b12df35f4276843297e3b372483a6a to your computer and use it in GitHub Desktop.
JS snippets for browser console
// 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