Created
November 5, 2021 22:30
-
-
Save jilink/ec0177e3497bc486c4e9f7399ce9f2df to your computer and use it in GitHub Desktop.
Bookmarklet to toggle between github repo and vscode version in one click
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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