-
-
Notifications
You must be signed in to change notification settings - Fork 166
GitHub download zip
Rob Garrison edited this page Oct 24, 2022
·
19 revisions
A userscript adds download links so that downloaded filenames include the SHA
- This userscript works on:
- Main repo page "Clone or Download" dropdown. The download link is modified.
- Repo commits page. Each commit can be downloaded as a zip file.
- The dropdown may not show any content if the repo doesn't specifically define a release
- https://github.com/Mottie/GitHub-userscripts/releases - doesn't define releases
- https://github.com/xojs/xo/releases - defines releases & default assets
- https://github.com/Maximus5/ConEmu/releases - defines releases & includes extra assets
- The zip is downloaded using the api, so the file name may or may not include the last tag associated with the commit.
- See issue #62.
- Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.
URL | Name of downloaded file | Details |
---|---|---|
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/master | Mottie-GitHub-userscripts-v1.0.214-0-gae48ca9.zip | user + repo + last tag + #? + "g" + SHA of last commit |
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/v1.0.208 | Mottie-GitHub-userscripts-v1.0.208-0-gaa9b2db.zip | user + repo + associated tag + #? + "g" + SHA of tagged version |
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/31340a9 | Mottie-GitHub-userscripts-v1.0.211-3-g31340a9.zip | user + repo + last tag + #? + "g" + SHA of last commit |
https://api.github.com/repos/mozilla/pdf.js/zipball/gh-pages | mozilla-pdf.js-078f568.zip | user + repo + SHA of last commit in that branch |
- Update dependencies.
- Update mutation script.
- Update mutation script.
- Fixed section alignment.
- Fixed error & no results handling.
- Included zip & tarball in results.
- Stop wrap on commits page.
- Update loading icon.
- Prevent JS error on click.
- Use non-truncated path. Fixes issue #81.
- Add release links dropdown. Closes issue #62.
- Fix message for no releases.
- Prevent truncated branch name usage. See issue #81.
- Fixfor GitHub Download Zip stopped working due to GH changes. See issue #72 & pull #73; thanks @CollinChaffin!
- Prevent duplicate buttons. Fixes issue #74.
- Update GitHub icon.
- Update mutation script.
- Initial commit.