GitHub Download ZIP

A userscript adds download links so that downloaded filenames include the SHA

Author
Mottie
Daily installs
0
Total installs
59
Ratings
2 0 0
Version
0.1.0
Created
Updated
License
MIT
Applies to

Author's Description

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 zip is downloaded using the api, so the file name may or may not include the last tag associated with the commit.

Examples

URLName of downloaded fileDetails
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/masterMottie-GitHub-userscripts-v1.0.213-0-gaaafb00.zipuser + repo + last tag + #? + "g" + SHA of last commit
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/v1.0.208Mottie-GitHub-userscripts-v1.0.208-0-gaa9b2db.zipuser + repo + associated tag + #? + "g" + SHA of tagged version
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/31340a9Mottie-GitHub-userscripts-v1.0.211-3-g31340a9.zipuser + repo + last tag + #? + "g" + SHA of last commit
https://api.github.com/repos/mozilla/pdf.js/zipball/gh-pagesmozilla-pdf.js-078f568.zipuser + repo + SHA of last commit in that branch

github-download-zip

github-download-zip-commits

Hosted with ♥ at GitHub