- Copy the code below:
javascript:var url = window.location.href; const regex =/.*\.com\/(.*?)\/(.*)/; ;window.location.href = url.replace(regex,%27https://$1.github.io/$2%27).replace(%27blob/main/%27,%27%27).replace(/\.md$/,%27%27);
- Create a new bookmark.
- Set the bookmarklet name and paste the above as the URL.