-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
366 lines (351 loc) · 11.2 KB
/
index.html
File metadata and controls
366 lines (351 loc) · 11.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!DOCTYPE html>
<html>
<head>
<title>GitHub 代理加速</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://unpkg.com/vssue/dist/vssue.min.css">
<link rel="icon" href="/favicon.jpg">
<meta charset="UTF-8">
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5N8GEQD9CY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-5N8GEQD9CY');
</script>
<!-- LeanCloud -->
<script src="https://cdn.jsdelivr.net/npm/leancloud-storage@4.15.0/dist/av-min.js"></script>
</head>
<body>
<h1 class="title">GitHub 代理</h1>
<div id="results">
<div class="header">
<div class="logo">GitHub 代理</div>
<div class="header-buttons">
<a href="https://ghp.keleyaa.com/https://raw.githubusercontent.com/oopsunix/hosts/refs/heads/main/hosts_github"
class="hosts-btn"
target="_blank">
Hosts
</a>
<button class="reaction-btn">反馈</button>
</div>
</div>
<div class="input-group">
<input type="text" placeholder="请贴入来自 GitHub 的链接" />
<button class="download-btn">⚡️ 加速下载</button>
</div>
<div class="select-group">
<label>加速源:</label>
<select id="proxySelect">
<!-- 节点将通过 JavaScript 动态加载 -->
</select>
<button class="test-btn">在线节点检测</button>
<span id="testProgress" style="margin-left: 10px;"></span>
</div>
<div class="notice">
重要提示:公共服务,请勿滥用。加速源来自网络收集合,在此感谢每一位分享者以及加速源的拥有者。
<div id="userCount" style="margin-top: 10px;">
已有 <span id="visit-count">--</span> 名用户使用本工具。
</div>
</div>
<div class="instructions">
<h2>使用说明</h2>
<ol>
<li>支持GitHub文件、Releases、archive、gist、raw.githubusercontent.com文件下载</li>
<li>复制 GitHub 文件的原始链接,粘贴到上方输入框</li>
<li>不支持整个项目文件夹的下载</li>
</ol>
<h2>页面合法输入示例</h2>
<ul>
<li>
<span class="label">原始文件:</span>
<a href="https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt" class="example-link">
https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt
</a>
</li>
<li>
<span class="label">版本来源:</span>
<a href="https://github.com/microsoft/vscode/archive/refs/heads/main.zip" class="example-link">
https://github.com/microsoft/vscode/archive/refs/heads/main.zip
</a>
</li>
<li>
<span class="label">发布文件:</span>
<a href="https://github.com/github/gh-ost/releases/download/v1.1.6/gh-ost" class="example-link">
https://github.com/github/gh-ost/releases/download/v1.1.6/gh-ost
</a>
</li>
<li>
<span class="label">发布源码:</span>
<a href="https://github.com/microsoft/vscode/archive/refs/tags/1.82.3.zip" class="example-link">
https://github.com/microsoft/vscode/archive/refs/tags/1.82.3.zip
</a>
</li>
<li>
<span class="label">分支文件:</span>
<a href="https://github.com/hydro-dev/Hydro/blob/master/README.md" class="example-link">
https://github.com/hydro-dev/Hydro/blob/master/README.md
</a>
</li>
<li>
<span class="label">分支源码:</span>
<a href="https://github.com/CB-X2-Jun/Github_Proxy/archive/main.zip" class="example-link">
https://github.com/CB-X2-Jun/Github_Proxy/archive/main.zip
</a>
</li>
</ul>
</div>
</div>
<div id="vssue" class="instructions"></div>
<script src="https://unpkg.com/vue@2.7.14/dist/vue.min.js"></script>
<script src="https://unpkg.com/vssue/dist/vssue.github.min.js"></script>
<script>
new Vue({
el: '#vssue',
data: {
title: 'Vssue Dev',
options: {
owner: 'CB-X2-Jun',
repo: 'Github_Proxy',
clientId: 'Ov23liBmLpGDqiz84Wqv',
clientSecret: 'af556c87e8c53600dfce3137cf298e61955ed643', // 只有在使用某些平台时需要
},
},
template: `<vssue :title="title" :options="options"></vssue>`,
})
</script>
<div class="footer">
<div class="footer-content">
<div class="copyright">
<!-- © 2025 Eternity-Sky and CB_X2_Jun. All rights reserved.   -->
<a href="https://icp.gov.moe/?keyword=20255355" target="_blank">萌ICP备20255355号</a>
</div>
<a href="https://github.com/CB-X2-Jun/Github_Proxy"
class="github-link"
target="_blank">
<span class="github-icon"></span>
GitHub 仓库
</a>
</div>
</div>
<script src="speedtest.js"></script>
<script>
// 定义代理节点列表
const proxyNodes = [
'gitproxy.click',
'demo.52013120.xyz',
'github.whrstudio.top',
'free.cn.eu.org',
'ghp.arslantu.xyz',
// 已受反馈停用 'api-gh.muran.eu.org',
'ghproxy.imciel.com',
'slink.ltd',
'firewall.lxstd.org',
'github.moeyy.xyz',
'gh.noki.icu',
'gh.noki.eu.org',
'ghpxy.hwinzniej.top',
'ghf.无名氏.top',
'ghm.078465.xyz',
'gp.xylorase.ren',
'x.whereisdoge.work',
'y.whereisdoge.work',
'gh.veskarer.moe',
'github.tianrld.top',
'z.whereisdoge.work',
'gh-proxy.net',
'g.whereisdoge.work',
'gh.con.sh',
'ghp.alet15c.网址',
'cpcalendars.whereisdoge.work',
'gh.monlor.com',
'gitproxy.mrhjx.cn',
'ghproxy.org',
'g.blfrp.cn',
'gh.herronjay.me',
'github.chenc.dev',
'github.3x25.com',
'g.paulzheng888000.place',
'ghfile.geekertao.top',
'gp.voolwoolxyz.run',
'github.starrlzy.cn',
'github.tmby.shop',
'g.brooidy555.la',
'43.132.131.30:9999',
'cf.ghproxy.cc',
'jiashu.1win.eu.org',
'j.1win.ggff.net',
'ghproxy.vansour.top',
'j.1lin.dpdns.org',
'gh-deno.mocn.top',
'ghfiles.geekertao.top',
'github.geekertao.top',
'git.yylx.win',
'gh.944446.xyz',
'tvv.tw',
'8.210.207.225:8888',
'github.kongkuang.top',
'github-proxy.kongkuang.icu',
'github.kkproxy.dpdns.org',
'gp-us.fyan.top',
'gitproxy.127731.xyz',
'github.iomi.team',
'ghproxy.cfd',
'gh.222322.xyz',
'github.acmsz.top',
'github.cmsz.dpdns.org',
'ghproxy.fangkuai.fun',
'github.alvertansio.sh',
'gh.tryxd.cn',
'moran233.xyz',
'gp.ea313ea3a1ebc41d49d7.app',
'gitdl.cn',
'12.do.lambterrp.cc',
'fastgit.cc',
'github.abeeookk100.jp',
'github-proxy.zaqqolin.cx',
'github.limoruirui.com',
'sciproxy.com',
'gh.jasonzeng.dev',
'gh-proxy.shanghaimzq.ga',
'git.speed-ssr.tech',
'gh-proxy.com',
'cdn.gh-proxy.com',
'gh.xx9527.cn',
'p.seeder23156.jp',
'gh.zwy.me',
'github.xxlab.tech',
'gh.idayer.com',
'gh.cache.cloudns.org',
'ghp.miaostay.com',
'ghpr.cc',
'github.7boe.top',
'gh1.hub.px.blogofzhangyuchen.top',
'gh.nxnow.top',
'ghproxy.monkeyray.net',
'hub.gitmirror.com',
'git.hub.proxy.hakahappyzhu.blog',
'gh.pylas.xyz',
'proxy.gitwarp.com',
'proxy.evenir1.网址',
'gh.ezctrl.cn',
'ghproxy.fangkuai.fun',
'gh-proxy.ygxz.in',
'gh.llkk.cc',
'gh.chaoyi996.com',
'mirror.ghproxy.com',
'a.a-gitp.ghpxyyyyyyyyy.co.uk',
'gitproxy1.127731.xyz',
'720091.ghproxy-000.dating',
'ghproxy.twyccdar.ml',
'ghp.ci',
'gh.bink.cc',
'githubapi.jjchizha.com',
'www.zyzzjfk.accountant',
'gh-proxy.llyke.com',
'ql.133.info',
'ghproxy.cn',
'gh.6yit.com',
'ghp.keleyaa.com',
'gh.jarzailomim.com.cn',
'ghproxy.net',
'ghproxy.whereisdoge.work',
'gh.chjina.com',
'ghproxy.xiaopa.cc',
'gh.xxooo.cf',
'ghproxy.cc',
'gh.catmak.name',
'whereisdoge.work',
'www.whereisdoge.work',
'git.669966.xyz',
'gh.api.99988866.xyz',
'gh.sixyin.com',
'proxy.yaoyaoling.net',
'gh.hlg.us.kg',
'ghproxy.cnproxy.top',
'git.40609891.xyz',
'github.ednovas.xyz',
'mtp.whereisdoge.work',
'ghp.ml1.one',
'gp.zkitefly.eu.org',
'ghp.whereisdoge.work',
'git.886.be',
'ghp.p3terx.com',
'gh.qninq.cn',
'github代理.whereisdoge.work',
'代理.whereisdoge.work',
'cccccccccccccccccccccccccccccccccccccccccccccccccccc.cc',
'gh.ddlc.top',
'gh-proxy.linioi.com',
'cpcontacts.whereisdoge.work',
'github.tbedu.top',
'gp.whereisdoge.work',
'ghproxy.cianogame.top',
'ghproxy.cxkpro.top',
'gh.zwnes.xyz',
'ghproxy.1888866.xyz',
'p.whereisdoge.work',
'gh.whereisdoge.work',
'gp.2425216531jyy.us.kg',
'cdn.akaere.online',
'ghproxy.friendsa.onflashdrive.app',
'gh.mott2525.gq',
'fastgh.zhaowxuan.tk',
'www.ten-year.link',
'ghproxy.tycoonarts.xyz',
'git.ppp.ac.cn',
'github-proxy.lixxing.top',
'github.proxy.class3.fun',
'webdisk.whereisdoge.work',
'www.imengying.eu.org',
'goppx.com',
'ghproxy.bravemail666.eu.org',
'ghp.grlzqim.shop',
'g.cachecdn.ggff.net',
'github.akams.cn',
'github.dpik.top',
'ghproxy.top',
'gh.jiasu.in',
'152.70.36.140:88',
'ghproxy.homeboyc.cn'
];
// 初始化下拉框选项
function initializeProxySelect() {
const select = document.getElementById('proxySelect');
select.innerHTML = proxyNodes.map(node => `
<option value="${node}">${node}</option>
`).join('');
}
window.onload = async () => {
// 首先初始化下拉框
initializeProxySelect();
// 然后进行速度测试
const results = await testAllNodes();
// 更新选择框的选项,包含延迟信息
const select = document.getElementById('proxySelect');
select.innerHTML = results.map(result => `
<option value="${result.node}">${result.node} - ${result.latency}ms</option>
`).join('');
};
document.addEventListener('click', (e) => {
if (e.target.classList.contains('test-btn')) {
testAllNodes().then(results => {
const select = document.getElementById('proxySelect');
select.innerHTML = results.map(result => `
<option value="${result.node}">${result.node} - ${result.latency}ms</option>
`).join('');
});
}
if (e.target.classList.contains('download-btn')) {
const input = document.querySelector('.input-group input');
const select = document.getElementById('proxySelect');
if (input.value && select.value) {
const proxyUrl = `https://${select.value}/${input.value}`;
window.open(proxyUrl);
}
}
});
</script>
</body>
</html>