Elite trick on GitHub to get all repos via inspect element / console at once
Greetings,
After a nice gentleman posted that I was not helping that much by jumping around in my ideas and assuming people know what I am talking about, I will take a different approach.
Lets say you find a kick a$$ github repo, and you want all of the repos that the genius who made them has. Lets take this repo for example:
Link: https:// github.com/testanull/ — Visit this (safe) link.
Right Click — Inspect / Console —
You can type at the > prompt
Paste in the following:
(async () => { let username = location.pathname.split('/')[1]; let response = await fetch(`https://api.github.com/users/${username}/repos`); let repos = await response.json(); console.log(`Repositories for ${username}:`); repos.forEach(repo => console.log(repo.name, repo.html_url)); })();
It will detect the user and display the repos if it worked right:
Hopefully this is straight to the point and helpful
subz