你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/373514-github-download-zip,源站連結 點此以跳轉

GitHub Download ZIP

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

当前为 2018-10-22 提交的版本,查看 最新版本


點此查看下載連結位址https://update.greasyfork.org.cn/scripts/373514/638950/GitHub%20Download%20ZIP.user.js

安装此脚本?
作者
Mottie
评分
0 0 0
版本
0.1.0
创建于
2018-10-22
更新于
2018-10-22
大小
2.9 KB
许可证
MIT
适用于

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

URL Name of downloaded file Details
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/master Mottie-GitHub-userscripts-v1.0.213-0-gaaafb00.zip user + repo + #? + "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 + #? + "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 + #? + "g" + SHA of set SHA with last tagged version
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


github-download-zip

github-download-zip-commits

Hosted with ♥ at GitHub