Skip to content

Instantly share code, notes, and snippets.

View Pakirava-Datsuma's full-sized avatar

Dmytro Kulieshov Pakirava-Datsuma

  • Ukraine
View GitHub Profile
@Pakirava-Datsuma
Pakirava-Datsuma / snippets.js
Last active February 1, 2024 14:20
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 + ' ', '')