How to get Github Pages repo URL if you only know the CNAME
<p>Let's say you're visiting a webpage that's hosted on github pages. Maybe it's <code>www.someProject.com</code>. How would you get either: </p>

<ul>
<li>the github URL (something like <code>github.com/someUser/someProject</code>) </li>
<li>OR the pages url without the CNAME (which would be something like <code>someUser.github.io/someProject</code>)? </li>
</ul>

<p>Can you use GitHub's API for this? I'd like to be able to do this programmatically from the web browser.</p>