Skip to content

Commit 9d30fa2

Browse files
Merge branch 'main' into stable
2 parents 5502b5f + e083a12 commit 9d30fa2

File tree

3 files changed

+40
-28
lines changed

3 files changed

+40
-28
lines changed

public/temp/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<header
2-
class="top-5 w-full fixed lg:absolute lg:top-5 z-50 lg:pt-0 bg-white h-16 flex items-center"
2+
class="top-2 w-full fixed lg:absolute lg:top-5 z-50 lg:pt-0 bg-white h-16 flex items-center"
33
>
44
<div
55
class="mx-auto flex w-full max-w-7xl items-center justify-between px-2 lg:px-8"

public/temp/index.html

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,23 @@
110110
</p>
111111

112112
<p id="mirror-list"></p>
113-
113+
<!--
114114
<br />
115115
116116
<p id="current-mirror" class="font-semibold text-indigo-600"></p>
117-
117+
-->
118118
<br />
119119

120-
<h1>本域名已添加广告,请多查看广告支持开发更多反封锁工具</h1>
120+
<h1 class="font-semibold text-indigo-600">
121+
本域名已添加广告,请多查看广告支持添加更多服务器节点
122+
</h1>
123+
124+
<a
125+
href="https://donate.stripe.com/8wM8A3649d9W7o4000"
126+
class="text-lg leading-6 hover:text-gray-900 font-semibold text-lime-500"
127+
target="_blank"
128+
>欢迎赞助1刀</a
129+
>
121130

122131
<br />
123132

@@ -336,30 +345,26 @@ <h1>
336345
</div>
337346
<div class="mt-4 lg:mt-1">
338347
<h1 class="font-bold">翻墙软件推荐</h1>
339-
<h1 class="mt-4">安卓手机使用NthLink, Orbot VPN, Cloudflare</h1>
348+
<h1 class="mt-4">安卓手机使用NthLink, V2Ray, Outline</h1>
340349
<h1>
341350
苹果手机苹果电脑使用<a
342351
href="./qa.html#apple-account"
343352
class="font-semibold text-indigo-600"
344353
>海外苹果账户</a
345-
>下载NthLink, Orbot VPN, Cloudflare
354+
>下载NthLink, V2Ray, Outline
346355
</h1>
347-
<h1>微软系统电脑使用VPNGate, NthLink, Cloudflare</h1>
348-
<h1 class="mt-4">
349-
如果以上无法使用, 使用V2Ray系列或Outline
350-
<a
351-
href="https://donate.stripe.com/8wM8A3649d9W7o4000"
352-
class="text-lg leading-6 hover:text-gray-900 font-semibold text-lime-500"
353-
target="_blank"
354-
>欢迎赞助1刀</a
355-
>
356-
</h1>
357-
<h1>赞助1刀将提供更多节点 更快速度订阅链接</h1>
358-
<br />
356+
<h1>微软系统电脑使用NthLink, V2Ray, Outline</h1>
357+
359358
<h1>
360359
点击节点复制, 导入到V2Ray/Outline
361-
<p class="overflow-auto" onclick="copyText('outline')">
362-
<span id="outline"
360+
<p class="overflow-auto" onclick="copyText('outline1')">
361+
<span id="outline1"
362+
>https://raw.githubusercontent.com/hello-world-1989/cn-news/main/end-gfw-together-ss</span
363+
>
364+
</p>
365+
366+
<p class="overflow-auto" onclick="copyText('outline2')">
367+
<span id="outline2"
363368
>https://raw.githubusercontent.com/hello-world-1989/cn-news/main/end-gfw-together-ss</span
364369
>
365370
</p>
@@ -855,18 +860,25 @@ <h1>
855860
async function getSS() {
856861
const res = await fetch('/ss-key');
857862

858-
const ssKey = await res.text();
863+
const ssKeyBase64 = await res.text();
859864

860-
const ssElement = document.getElementById('outline');
865+
const ssKey1 = ssKeyBase64?.split('\r\n')?.[0];
866+
const ssKey2 = ssKeyBase64?.split('\r\n')?.[1];
861867

862-
ssElement.href = ssKey;
863-
ssElement.innerText = ssKey;
868+
const ssElement1 = document.getElementById('outline1');
869+
const ssElement2 = document.getElementById('outline2');
870+
871+
ssElement1.href = ssKey1;
872+
ssElement1.innerText = ssKey1;
873+
874+
ssElement2.href = ssKey2;
875+
ssElement2.innerText = ssKey2;
864876
}
865877

866878
getSS();
867879
</script>
868880

869-
<script>
881+
<!-- <script>
870882
async function getCurrentMirrorStatus() {
871883
const res = await fetch('/check-status');
872884
@@ -881,7 +893,7 @@ <h1>
881893
}
882894
883895
getCurrentMirrorStatus();
884-
</script>
896+
</script> -->
885897

886898
<script>
887899
function copyText(elementId) {

src/proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ app.use('/github', async (req, res) => {
318318
app.use('/ss-key', async (req, res) => {
319319
try {
320320
const response = await axios.get(
321-
'https://raw.githubusercontent.com/hello-world-1989/cn-news/main/end-gfw-together-ss'
321+
'https://raw.githubusercontent.com/hello-world-1989/v2-sub/main/end-gfw-together-ss'
322322
);
323323

324324
const base64String = response?.data;
@@ -335,7 +335,7 @@ app.use('/ss-key', async (req, res) => {
335335
result = array?.[0];
336336
}
337337

338-
res.send(result);
338+
res.send(base64String.split('\r\n').slice(0, 2).join('\r\n'));
339339
} catch (err) {
340340
console.log(err);
341341
res.send('');

0 commit comments

Comments
 (0)