zhanglianxin / mystars

Origanize my starred repos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mystars

What repositories I star stands for what I focus on.

(() => {
    let text = '';
    let titles = document.querySelectorAll('h3');
    let descs = document.querySelectorAll('div.py-1');
    for (let i = 0; i < titles.length; i++) {
        text += `* [${titles[i].innerText}](${titles[i].querySelector('a').href})\n`;
        if (descs[i].childNodes.length > 1) {
            text += `  ${descs[i].querySelector('p[itemprop="description"]').innerText}\n`;
        }
        text += '\n';
    }
    console.clear();
    console.log(text);
})();

About

Origanize my starred repos

License:MIT License