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
(function setupGithubLinkCollectorUI() { | |
// === Get all <a href="..."> values from the page === | |
function getAllAnchors() { | |
return Array.from(document.querySelectorAll('a[href]')).map(a => a.href); | |
} | |
// === Extract only the root of *.github.io links (e.g. https://user.github.io) === | |
function extractGithubIoRoots(hrefs) { | |
return [...new Set( | |
hrefs |
OlderNewer