Last active
February 1, 2024 14:20
-
-
Save Pakirava-Datsuma/e6b12df35f4276843297e3b372483a6a to your computer and use it in GitHub Desktop.
JS snippets for browser console
This file contains 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 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