Repository to GitHub.io Page Bookmarklet
This bookmarklet automatically converts the current GitHub Repo URL to the GitHub.io Page.
- Create a new Bookmark and name it "Repo to GH Page" or something.
- Paste this as the URL:
javascript:(()=>{const{href:a}=window.location;if(a.startsWith("https://github.com/")){const b=(a.split("/").pop()||"").split("#")[0];if(b){const c=(a.split("/")[3]||"").split(".")[0];c&&(window.location.href=`https://${c}.github.io/${b}`)}}})();
- Move it to your bookmarks bar (optional)