Skip to content

Commit 2999356

Browse files
committed
更新 加速源
1 parent 867444d commit 2999356

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

GithubEnhanced-High-Speed-Download.user.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN Github 增强 - 高速下载
44
// @name:zh-TW Github 增強 - 高速下載
55
// @name:en Github Enhancement - High Speed Download
6-
// @version 2.1.9
6+
// @version 2.1.10
77
// @author X.I.U
88
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
99
// @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
@@ -68,14 +68,15 @@
6868
['git@git.zhlh6.cn', '美国', '[美国 洛杉矶]']
6969
], raw_url = [
7070
['https://raw.githubusercontent.com', 'Github 原生', '[日本 东京]'],
71-
['https://jsd.eagleyao.com/gh', '国内', '[中国 国内] - 该公益加速源由 [ayao] 提供

 - 缓存:有'],
71+
['https://jsd.cdn.zzko.cn/gh', '国内 1', '[中国 国内] - 该公益加速源由 [ayao] 提供

 - 缓存:有'],
72+
['https://js.cdn.haah.net/gh', '国内 2', '[中国 国内] - 该公益加速源由 [haah] 提供

 - 缓存:有'],
7273
['https://raw.iqiq.io', '香港 1', '[中国 香港] - 该公益加速源由 [iQDNS/iQZone] 提供

 - 缓存:无(或时间很短)'],
7374
['https://raw.kgithub.com', '新加坡 1', '[新加坡] - 该公益加速源由 [KGitHub] 提供

 - 缓存:无(或时间很短)'],
7475
//['https://ghproxy.com/https://raw.githubusercontent.com', '韩国', '[韩国 首尔] - 该公益加速源由 [ghproxy] 提供

 - 缓存:无(或时间很短)'],
7576
['https://fastly.jsdelivr.net/gh', '日本 1', '[日本 东京] - 该公益加速源由 [JSDelivr CDN] 提供

 - 缓存:有
 - 不支持大小超过 50 MB 的文件
 - 不支持版本号格式的分支名(如 v1.2.3)'],
7677
['https://cdn.staticaly.com/gh', '日本 2', '[日本 东京] - 该公益加速源由 [Statically CDN] 提供

 - 缓存:有
 - 不支持大小超过 30 MB 的文件'],
7778
['https://raw.fastgit.org', '日本 3', '[日本 东京] - 该公益加速源由 [FastGit] 提供

 - 缓存:无(或时间很短)'],
78-
['https://ghproxy.net/https://raw.githubusercontent.com', '日本 4', '[日本 大阪]

 - 缓存:无(或时间很短)'],
79+
//['https://ghproxy.net/https://raw.githubusercontent.com', '日本 4', '[日本 大阪]

 - 缓存:无(或时间很短)'],
7980
//['https://raw.njuu.cf', '美国', '[美国 拉斯维加斯] - 该公益加速源由 [LibraryCloud] 提供

 - 缓存:无(或时间很短)'],
8081
//['https://raw.cithub.icu', '美国', '[美国 洛杉矶]

 - 缓存:无(或时间很短)'],
8182
//['https://git.yumenaka.net/https://raw.githubusercontent.com', '美国', '[美国 圣何塞]

 - 缓存:无(或时间很短)'],
@@ -261,7 +262,7 @@
261262
url = '', _html = '';
262263

263264
for (let i=1;i<raw_url.length;i++) {
264-
if (raw_url[i][0].indexOf('jsdelivr.net') != -1 || raw_url[i][0].indexOf('eagleyao.com') != -1) {
265+
if (raw_url[i][0].indexOf('/gh') != -1 && raw_url[i][0].indexOf('cdn.staticaly.com') === -1) {
265266
url = raw_url[i][0] + href.replace('/blob/','@');
266267
} else {
267268
url = raw_url[i][0] + href2;
@@ -304,8 +305,7 @@
304305
Name = cntElm_a.innerText,
305306
href = cntElm_a.getAttribute('href'),
306307
href2 = href.replace('/blob/','/'), url, url_name, url_tip = '';
307-
308-
if (raw_url[menu_raw_fast][0].indexOf('jsdelivr.net') != -1 || raw_url[menu_raw_fast][0].indexOf('eagleyao.com') != -1) {
308+
if (raw_url[menu_raw_fast][0].indexOf('/gh') != -1 && raw_url[menu_raw_fast][0].indexOf('cdn.staticaly.com') === -1) {
309309
url = raw_url[menu_raw_fast][0] + href.replace('/blob/','@');
310310
} else {
311311
url = raw_url[menu_raw_fast][0] + href2;

0 commit comments

Comments
 (0)