|
1 | 1 | // ==UserScript== |
2 | 2 | // @name Github 增强 - 高速下载 |
3 | | -// @version 1.4.6 |
| 3 | +// @version 1.4.7 |
4 | 4 | // @author X.I.U |
5 | 5 | // @description 高速下载 Git Clone、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) |
6 | 6 | // @match *://github.com/* |
|
32 | 32 |
|
33 | 33 | var download_url = [ |
34 | 34 | ['https://gh.api.99988866.xyz','美国'], |
| 35 | + ['https://gh.xiu2.xyz','美国'], |
35 | 36 | ['https://download.fastgit.org','日本东京'], |
36 | | - ['https://gh.xiu2.xyz','日本东京'], |
37 | 37 | ['https://ghproxy.com','韩国首尔'], |
38 | 38 | ['https://pd.zwc365.com/seturl','中国香港'] |
39 | 39 | ], |
|
119 | 119 | let href = _this.href.split('github.com'), |
120 | 120 | url = [ |
121 | 121 | download_url[0][0] + '/' + _this.href, |
122 | | - download_url[1][0] + href[1], |
123 | | - download_url[2][0] + '/' + _this.href, |
| 122 | + download_url[1][0] + '/' + _this.href, |
| 123 | + download_url[2][0] + href[1], |
124 | 124 | download_url[3][0] + '/' + _this.href, |
125 | 125 | download_url[4][0] + '/' + _this.href |
126 | 126 | ], |
|
140 | 140 | let href = _this.href.split('github.com'), |
141 | 141 | url = [ |
142 | 142 | download_url[0][0] + '/' + _this.href, |
143 | | - download_url[1][0] + href[1], |
144 | | - download_url[2][0] + '/' + _this.href, |
| 143 | + download_url[1][0] + '/' + _this.href, |
| 144 | + download_url[2][0] + href[1], |
145 | 145 | download_url[3][0] + '/' + _this.href, |
146 | 146 | download_url[4][0] + '/' + _this.href |
147 | 147 | ], |
|
164 | 164 | let href = html.getElementsByTagName('a')[0].href, |
165 | 165 | url = [ |
166 | 166 | download_url[0][0] + "/" + href, |
167 | | - download_url[1][0] + href.split('github.com')[1], |
168 | | - download_url[2][0] + "/" + href, |
| 167 | + download_url[1][0] + "/" + href, |
| 168 | + download_url[2][0] + href.split('github.com')[1], |
169 | 169 | download_url[3][0] + "/" + href, |
170 | 170 | download_url[4][0] + '/' + href |
171 | 171 | ], |
|
0 commit comments