Skip to content

Commit

Permalink
Update README Bookmarklet
Browse files Browse the repository at this point in the history
Update Bookmarklet in README.
You can use it to quickly switch between github.com and github1s.com.
  • Loading branch information
shanyuhai123 authored Feb 24, 2021
1 parent 8cfba43 commit 6a9c56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For example, try it on the VS Code repo:

For browser extensions, see [Third-party Related Projects](https://github.com/conwnet/github1s#third-party-related-projects).

Or save the following code snippet as a bookmarklet (GitHub markdown doesn't allow js links, so just copy it into a bookmark).
Or save the following code snippet as a bookmarklet, you can use it to quickly switch between github.com and github1s.com (GitHub markdown doesn't allow js links, so just copy it into a bookmark).

```
javascript: window.location.href = window.location.href.replace(/github(1s)?.com/, function(match, p1) { return p1 ? 'github.com' : 'github1s.com' })
Expand Down

0 comments on commit 6a9c56a

Please sign in to comment.