Skip to content

Instantly share code, notes, and snippets.

@jilink
Created November 5, 2021 22:30
Show Gist options
  • Select an option

  • Save jilink/ec0177e3497bc486c4e9f7399ce9f2df to your computer and use it in GitHub Desktop.

Select an option

Save jilink/ec0177e3497bc486c4e9f7399ce9f2df to your computer and use it in GitHub Desktop.
Bookmarklet to toggle between github repo and vscode version in one click
javascript: (function () {
if (window.location.href.includes("vscode.dev")) {
window.location.replace(
window.location.href.replace(
"vscode.dev/", ""
).replace("github", "github.com"))
}
else {
window.location.replace(`http://vscode.dev/${window.location.href}`)
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment