Skip to content
Sign upLog in
← Back to Community

Simple github -> replit fork button!

Profile icon
Crowst

Ever seen a Run on Repl.it button?

But only on some github repos? Well now you have it at your access wherever and whenever! Copy and paste this bookmarklet on your bookmarks bar (see the bottom for help with copying)

hint pls upvote

javascript:const text = window.location.href; if (text.includes("https://github.com")) { console.log(`Original link: ${text}`); editedtext = text.replace("https://github.com/", "https://replit.com/github/"); console.log(`Edited Link: ${editedtext}`); window.location.href=editedtext;} else { confim = confirm("You need to be on github.com to use this!\n\nDo you want to go to github.com?"); if (confim == true) { window.location.href = "https://github.com/" } else { console.log("ok"); }; };

Simple github -> replit fork button!

Basically what its doing is getting the current url page, then if the current page is github it will convert the link and go to the new link so yea

Voters
Profile icon
ikpar3
Profile icon
Crowst