-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README Bookmarklet #173
Conversation
Update Bookmarklet in README. Make the URL recoverable to github.com.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/conwnet/github1s/3RcsUBkx53wr9Uik779jENahEUgM |
@@ -19,7 +19,7 @@ For browser extensions, see [Third-party Related Projects](https://github.com/co | |||
Or save the following code snippet as a bookmarklet (GitHub markdown doesn't allow js links, so just copy it into a bookmark). | |||
|
|||
``` | |||
javascript: window.location.href = window.location.href.replace('github.com', 'github1s.com') | |||
javascript: window.location.href = window.location.href.replace(/github(1s)?.com/, function(match, p1) { return p1 ? 'github.com' : 'github1s.com' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add an explanation for the behavior to convert back to github.com?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convert back to github.com to view issues and switch branch(Although mentioned in #155, I haven't seen it before).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean add this in the README file, thanks.
Update Bookmarklet in README. You can use it to quickly switch between github.com and github1s.com.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
* Update README.md Update Bookmarklet in README. Make the URL recoverable to github.com. * Update README Bookmarklet Update Bookmarklet in README. You can use it to quickly switch between github.com and github1s.com.
Update Bookmarklet in README. Make the URL recoverable to github.com.