|
3 | 3 | // @name:zh-CN Github 增强 - 高速下载 |
4 | 4 | // @name:zh-TW Github 增強 - 高速下載 |
5 | 5 | // @name:en Github Enhancement - High Speed Download |
6 | | -// @version 2.1.9 |
| 6 | +// @version 2.1.10 |
7 | 7 | // @author X.I.U |
8 | 8 | // @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) |
9 | 9 | // @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) |
|
68 | 68 | ['git@git.zhlh6.cn', '美国', '[美国 洛杉矶]'] |
69 | 69 | ], raw_url = [ |
70 | 70 | ['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] 提供 - 缓存:有'], |
72 | 73 | ['https://raw.iqiq.io', '香港 1', '[中国 香港] - 该公益加速源由 [iQDNS/iQZone] 提供 - 缓存:无(或时间很短)'], |
73 | 74 | ['https://raw.kgithub.com', '新加坡 1', '[新加坡] - 该公益加速源由 [KGitHub] 提供 - 缓存:无(或时间很短)'], |
74 | 75 | //['https://ghproxy.com/https://raw.githubusercontent.com', '韩国', '[韩国 首尔] - 该公益加速源由 [ghproxy] 提供 - 缓存:无(或时间很短)'], |
75 | 76 | ['https://fastly.jsdelivr.net/gh', '日本 1', '[日本 东京] - 该公益加速源由 [JSDelivr CDN] 提供 - 缓存:有 - 不支持大小超过 50 MB 的文件 - 不支持版本号格式的分支名(如 v1.2.3)'], |
76 | 77 | ['https://cdn.staticaly.com/gh', '日本 2', '[日本 东京] - 该公益加速源由 [Statically CDN] 提供 - 缓存:有 - 不支持大小超过 30 MB 的文件'], |
77 | 78 | ['https://raw.fastgit.org', '日本 3', '[日本 东京] - 该公益加速源由 [FastGit] 提供 - 缓存:无(或时间很短)'], |
78 | | - ['https://ghproxy.net/https://raw.githubusercontent.com', '日本 4', '[日本 大阪] - 缓存:无(或时间很短)'], |
| 79 | + //['https://ghproxy.net/https://raw.githubusercontent.com', '日本 4', '[日本 大阪] - 缓存:无(或时间很短)'], |
79 | 80 | //['https://raw.njuu.cf', '美国', '[美国 拉斯维加斯] - 该公益加速源由 [LibraryCloud] 提供 - 缓存:无(或时间很短)'], |
80 | 81 | //['https://raw.cithub.icu', '美国', '[美国 洛杉矶] - 缓存:无(或时间很短)'], |
81 | 82 | //['https://git.yumenaka.net/https://raw.githubusercontent.com', '美国', '[美国 圣何塞] - 缓存:无(或时间很短)'], |
|
261 | 262 | url = '', _html = ''; |
262 | 263 |
|
263 | 264 | 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) { |
265 | 266 | url = raw_url[i][0] + href.replace('/blob/','@'); |
266 | 267 | } else { |
267 | 268 | url = raw_url[i][0] + href2; |
|
304 | 305 | Name = cntElm_a.innerText, |
305 | 306 | href = cntElm_a.getAttribute('href'), |
306 | 307 | 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) { |
309 | 309 | url = raw_url[menu_raw_fast][0] + href.replace('/blob/','@'); |
310 | 310 | } else { |
311 | 311 | url = raw_url[menu_raw_fast][0] + href2; |
|
0 commit comments