diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index 5c85294..a80b7d0 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Github 增强 - 高速下载 -// @version 1.6.8 +// @version 1.6.9 // @author X.I.U // @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) // @match *://github.com/* @@ -36,13 +36,14 @@ } } const download_url = [ - ['https://gh.api.99988866.xyz/https://github.com', '美国 1'], - ['https://github.91chifun.workers.dev/https://github.com', '美国 2'], + ['https://github.91chifun.workers.dev/https://github.com', '美国 1'], + ['https://gh.api.99988866.xyz/https://github.com', '美国 2'], ['https://gh.xiu2.xyz/https://github.com', '美国 3'], ['https://github.rc1844.workers.dev', '美国 4'], ['https://pd.zwc365.com/seturl/https://github.com', '美国 5'], ['https://download.fastgit.org', '日本'], - ['https://ghproxy.com/https://github.com/', '韩国'] + ['https://ghproxy.com/https://github.com', '韩国'], + ['https://ghproxy.fsou.cc/https://github.com', '香港'] ], clone_url = [ ['https://hub.fastgit.org', '中国香港'], @@ -56,8 +57,10 @@ raw_url = [ ['https://raw.githubusercontent.com', 'Github 原生',''], ['https://cdn.jsdelivr.net','中国国内', '注意:该加速源存在缓存机制(24小时),所以文件可能不是最新。 注意:当前分支所有文件总文件大小超过 50MB 时,该加速源不可用。 注意:当前分支名为版本号格式时(如 v1.2.3),该高速下载链接因格式限制不可用。'], - ['https://raw.fastgit.org','中国香港', '注意:单个文件太大时可能会提示超时(实时获取中),请重试。'], - ['https://cdn.staticaly.com','日本东京', '注意:该加速是全球 Anycast CDN,国内一般分配到日本节点。'] + ['https://ghproxy.fsou.cc/https://github.com', '中国香港 1', ''], + ['https://pd.zwc365.com/seturl/https://github.com', '中国香港 2'], + ['https://raw.fastgit.org','日本东京 1', '注意:单个文件太大时可能会提示超时(实时获取中),请重试。'], + ['https://cdn.staticaly.com','日本东京 2', '注意:该加速是全球 Anycast CDN,国内一般分配到日本节点。'] ], svg = [ '', @@ -222,10 +225,13 @@ let html = document.getElementById('raw-url');if (!html) return let href = location.href.replace(`https://${location.host}`,''), href2 = href.replace('/blob/','/'), + href3 = document.getElementById('raw-url').getAttribute('href'), url = [ raw_url[1][0] + '/gh' + href.replace('/blob/','@'), - raw_url[2][0] + href2, - raw_url[3][0] + '/gh' + href.replace('/blob/','/') + raw_url[2][0] + href, + raw_url[3][0] + href3, + raw_url[4][0] + href2, + raw_url[5][0] + '/gh' + href.replace('/blob/','/') ], _html = ``; for (let i=0;i