Skip to content

Commit 9975014

Browse files
committed
移除 失效的 [中国国内 01] Raw 加速源
1 parent f8f6629 commit 9975014

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

GithubEnhanced-High-Speed-Download.user.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Github 增强 - 高速下载
3-
// @version 1.4.3
3+
// @version 1.4.4
44
// @author X.I.U
55
// @description 高速下载 Git Clone、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
66
// @match *://github.com/*
@@ -45,8 +45,7 @@
4545
],
4646
raw_url = [
4747
['https://raw.githubusercontent.com','Github 原生',''],
48-
['https://raw.sevencdn.com','中国国内 01',''],
49-
['https://cdn.jsdelivr.net','中国国内 02','注意:该加速源存在缓存机制(24小时),所以文件可能不是最新。
注意:当前分支所有文件总文件大小超过 50MB 时,该加速源不可用。
注意:当前分支名为版本号格式时(如 v1.2.3),该高速下载链接因格式限制不可用。'],
48+
['https://cdn.jsdelivr.net','中国国内','注意:该加速源存在缓存机制(24小时),所以文件可能不是最新。
注意:当前分支所有文件总文件大小超过 50MB 时,该加速源不可用。
注意:当前分支名为版本号格式时(如 v1.2.3),该高速下载链接因格式限制不可用。'],
5049
['https://raw.fastgit.org','中国香港','注意:单个文件太大时可能会提示超时(实时获取中),请重试。'],
5150
['https://ghproxy.com','韩国首尔','']
5251
],
@@ -200,10 +199,9 @@
200199
let href = location.href.replace('https://github.com',''),
201200
href2 = href.replace('/blob/','/'),
202201
url = [
203-
raw_url[1][0] + href2,
204-
raw_url[2][0] + "/gh" + href.replace('/blob/','@'),
205-
raw_url[3][0] + href2,
206-
raw_url[4][0] + "/" + raw_url[0][0] + href2
202+
raw_url[1][0] + "/gh" + href.replace('/blob/','@'),
203+
raw_url[2][0] + href2,
204+
raw_url[3][0] + "/" + raw_url[0][0] + href2
207205
],
208206
_html = ``;
209207
for (let i=0;i<url.length;i++)
@@ -248,15 +246,15 @@
248246
let href2 = href.replace('/blob/','/'), url, url_name, url_tip = '';
249247
switch(menu_raw_fast)
250248
{
251-
case 2:
252-
url = raw_url[2][0] + '/gh' + href.replace('/blob/','@');
253-
url_name = raw_url[2][1];
254-
url_tip = raw_url[2][2];
249+
case 1:
250+
url = raw_url[1][0] + '/gh' + href.replace('/blob/','@');
251+
url_name = raw_url[1][1];
252+
url_tip = raw_url[1][2];
255253
break;
256-
case 4:
257-
url = raw_url[4][0] + "/" + raw_url[0][0] + href2;
258-
url_name = raw_url[4][1];
259-
url_tip = raw_url[4][2];
254+
case 3:
255+
url = raw_url[3][0] + "/" + raw_url[0][0] + href2;
256+
url_name = raw_url[3][1];
257+
url_tip = raw_url[3][2];
260258
break;
261259
default:
262260
url = raw_url[menu_raw_fast][0] + href2;

0 commit comments

Comments
 (0)