Skip to content

Instantly share code, notes, and snippets.

@Pakirava-Datsuma
Last active February 1, 2024 14:20
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 text across divs
Array.from(document.querySelectorAll("div.event-text span font font")).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