Skip to content

Commit 83cd7ca

Browse files
committed
更新 加速源
1 parent 45313bc commit 83cd7ca

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

GithubEnhanced-High-Speed-Download.user.js

Lines changed: 4 additions & 7 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.5
6+
// @version 2.1.6
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,6 +68,7 @@
6868
['git@git.zhlh6.cn', '美国', '[美国 洛杉矶]']
6969
], raw_url = [
7070
['https://raw.githubusercontent.com', 'Github 原生', '[日本 东京]'],
71+
['https://jsd.eagleyao.com/gh', '国内', '[中国 国内] - 该公益加速源由 [ayao] 提供

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

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

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

 - 缓存:无(或时间很短)'],
@@ -260,10 +261,8 @@
260261
url = '', _html = '';
261262

262263
for (let i=1;i<raw_url.length;i++) {
263-
if (raw_url[i][0].indexOf('jsdelivr.net') != -1) {
264+
if (raw_url[i][0].indexOf('jsdelivr.net') != -1 || raw_url[i][0].indexOf('eagleyao.com') != -1) {
264265
url = raw_url[i][0] + href.replace('/blob/','@');
265-
} else if (raw_url[i][0].indexOf('futils.com') != -1 || raw_url[i][0].indexOf('fsofso.com') != -1) {
266-
url = raw_url[i][0] + href;
267266
} else {
268267
url = raw_url[i][0] + href2;
269268
}
@@ -306,10 +305,8 @@
306305
href = cntElm_a.getAttribute('href'),
307306
href2 = href.replace('/blob/','/'), url, url_name, url_tip = '';
308307

309-
if (raw_url[menu_raw_fast][0].indexOf('jsdelivr.net') != -1) {
308+
if (raw_url[menu_raw_fast][0].indexOf('jsdelivr.net') != -1 || raw_url[i][0].indexOf('eagleyao.com') != -1) {
310309
url = raw_url[menu_raw_fast][0] + href.replace('/blob/','@');
311-
} else if (raw_url[menu_raw_fast][0].indexOf('futils.com') != -1 || raw_url[menu_raw_fast][0].indexOf('fsofso.com') != -1) {
312-
url = raw_url[menu_raw_fast][0] + href;
313310
} else {
314311
url = raw_url[menu_raw_fast][0] + href2;
315312
}

0 commit comments

Comments
 (0)