https://github.com/b-ryan/github
A bookmarklet that allows you to compare the branch you're viewing to the default branch of that repository.
https://github.com/b-ryan/github
Last synced: 6 months ago
JSON representation
A bookmarklet that allows you to compare the branch you're viewing to the default branch of that repository.
- Host: GitHub
- URL: https://github.com/b-ryan/github
- Owner: b-ryan
- Created: 2013-03-19T21:04:57.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-19T21:14:25.000Z (almost 13 years ago)
- Last Synced: 2025-02-28T07:57:21.267Z (11 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
github
======
A bookmarklet that allows you to compare the branch you're viewing to the default branch of that repository.
To use, create a bookmark with the following minified version of the code
as the URL:
`if(location.host=="github.com"&&(x=location.href.indexOf("/tree/"))!=-1){repoBase=location.href.substring(0,x);branch=location.href.substring(x+6);window.open(repoBase+"/compare/"+branch,"_self")}`