惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
博客园 - 司徒正美
I
InfoQ
宝玉的分享
宝玉的分享
G
Google Developers Blog
J
Java Code Geeks
Martin Fowler
Martin Fowler
The GitHub Blog
The GitHub Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
罗磊的独立博客
腾讯CDC
F
Fortinet All Blogs
A
About on SuperTechFans
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
B
Blog RSS Feed
博客园 - 聂微东
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏

朽丘秋雨

关于备案、主题开发和短暂停更的一点说明 | 柯讴朽丘的生活日志 如何启用域名DNSSEC的设置以及吃瓜某蒂云服务商跑路这件事 快速登记自己的作品版权合法保护自己的绘画等艺术作品 最近的改动和生活 小柯庆生这件事 一则域名通知申明 春节游记 简易的链接反馈 舟终末地初玩体验 给Hexo和留言添加跳转中间页 再见2025,你好2026 小站最新装修 25年11月灌水闲说 放下热爱,归向烟火,致大家的一封告别与交代信 比起顺意哄劝,我选笨拙地托你往亮处走 25年7月小结 代际观念与亲情现实的双重困局 25年6月小结 封建派还是自由派,真的是我封建吗 心悦君兮君不知,一寸相思一寸灰 25年4月小结 四月自我笔记 25年3月小结 25年2月小结 25年1月小结 漂泊异乡终归巢 社会变迁与个人成长:一种代际观察 好耶,热乎着,新形象! 再见2024,你好2025 24年12月小结
实现Artalk中间页安全跳转和表情包小图BUG预览
klcdm · 2026-04-14 · via 朽丘秋雨
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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<link rel="icon" href="【你的中间页的logo图标】" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow"/>
<title>😃页面加载中,请稍候...</title>
<style type="text/css">
/* 原所有样式代码保持不变,此处省略 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body {
overflow: hidden;
height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
transition: background 0.5s ease-in-out, color 0.3s ease;
animation: pageFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
opacity: 0;
background: linear-gradient(135deg, #121212, #181818);
color: #E0E0E0;
}
.tip-modal, .copy-success-modal {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.6);
z-index: 1000;
transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.tip-modal.hidden, .copy-success-modal.hidden {
opacity: 0;
pointer-events: none;
}
.modal-content, .copy-success-content {
width: 90%;
max-width: 420px;
padding: 36px;
border-radius: 24px;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(40, 40, 40, 0.8);
box-shadow: 0 0 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
text-align: center;
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
background: rgba(26, 26, 26, 0.88);
color: #E0E0E0;
}
.tip-modal.hidden .modal-content, .copy-success-modal.hidden .copy-success-content {
transform: translateY(30px) scale(0.95);
}
.modal-title, .copy-success-title {
font-size: 22px;
font-weight: 700;
margin-bottom: 16px;
letter-spacing: 0.8px;
color: inherit;
}
.modal-desc, .copy-success-desc {
font-size: 15px;
line-height: 1.7;
margin-bottom: 28px;
opacity: 0.95;
color: inherit;
}
.modal-buttons, .copy-success-buttons {
display: flex;
gap: 16px;
justify-content: center;
}
.modal-btn, .copy-success-btn {
padding: 12px 28px;
border-radius: 14px;
border: none;
cursor: pointer;
font-size: 15px;
font-weight: 600;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.modal-btn.understand, .copy-success-btn.know {
background-color: #3B82F6;
color: white;
}
.modal-btn.feedback {
background-color: #242424;
color: #E0E0E0;
}
.modal-btn::after, .copy-success-btn::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.6s ease;
}
.modal-btn:hover::after, .copy-success-btn:hover::after {
left: 100%;
}
.modal-btn:hover, .copy-success-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.theme-switch {
position: relative;
width: 52px;
height: 52px;
border-radius: 50%;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
transition: all 0.3s ease;
margin-top: 24px;
z-index: 99;
background: rgba(26, 26, 26, 0.9);
color: #3B82F6;
border-color: rgba(40, 40, 40, 0.5);
}
.theme-switch .tooltip {
position: absolute;
bottom: calc(100% + 12px);
left: 50%;
transform: translateX(-50%);
padding: 6px 12px;
background: #fff;
color: #333;
font-size: 12px;
font-weight: 500;
border-radius: 8px;
white-space: nowrap;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
transform: translateX(-50%) translateY(5px);
z-index: 100;
}
.theme-switch .tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 4px;
border-style: solid;
border-color: #fff transparent transparent transparent;
}
.theme-switch:hover .tooltip {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.theme-switch svg {
width: 26px;
height: 26px;
fill: currentColor;
transition: all 0.3s ease;
}
.theme-switch:hover {
transform: scale(1.08);
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}
.container {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
margin: 0;
flex-direction: column;
padding: 20px;
}
.avatar-placeholder, .avatar {
width: 108px;
height: 108px;
border-radius: 50%;
margin-bottom: 18px;
display: block;
transition: all 0.5s ease;
}
.avatar {
display: none;
box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
border: 2px solid rgba(255,255,255,0.2);
}
.description {
font-size: 24px;
font-weight: 700;
margin-bottom: 8px;
letter-spacing: 0.8px;
color: #E0E0E0;
}
.subtitle {
font-size: 14px;
margin-bottom: 28px;
color: #C4C4C4;
opacity: 0.8;
letter-spacing: 0.5px;
}
.loading {
text-align: center;
padding: 40px;
border-radius: 28px;
animation: fadein 0.8s cubic-bezier(0.4, 0, 0.2, 1);
width: 100%;
max-width: 500px;
transition: all 0.4s ease-in-out;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(40, 40, 40, 0.5);
box-shadow: 0 0 50px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
position: relative;
overflow: hidden;
background: rgba(26, 26, 26, 0.75);
}
.loading::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, rgba(59,130,246,0.03), rgba(14, 165, 233, 0.02));
pointer-events: none;
}
@keyframes fadein {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.content {
margin-bottom: 28px;
width: 100%;
}
.url-text {
margin-bottom: 14px;
font-size: 16px;
letter-spacing: 0.8px;
text-align: left;
font-weight: 500;
color: #C0C0C0;
}
.jump-url {
position: relative;
font-size: 16px;
display: block;
margin-top: 5px;
margin-bottom: 32px;
padding: 18px 24px;
border-radius: 18px;
height: auto;
min-height: 56px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
align-items: center;
transition: all 0.3s ease;
border: 1px solid rgba(40, 40, 40, 0.5);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
background-color: rgba(26, 26, 26, 0.8);
color: #E0E0E0;
}
.copy-btn-container {
position: absolute;
display: flex;
align-items: center;
right: 12px;
top: 50%;
transform: translateY(-50%);
height: 80%;
width: 76px;
flex-direction: row-reverse;
border-radius: 14px;
background: linear-gradient(to left, rgba(26,26,26,0.8) 70%,transparent 100%);
}
.copy-btn {
width: 46px;
height: 46px;
border-radius: 14px;
border: 1px solid rgba(40, 40, 40, 0.5);
transition: all 0.3s ease-in-out;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(12px);
position: relative;
overflow: hidden;
background-color: rgba(26, 26, 26, 0.95);
color: #C0C0C0;
}
.copy-btn::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
transition: left 0.5s ease;
}
.copy-btn:hover::after {
left: 100%;
}
.copy-btn-container svg {
width: 24px;
height: 24px;
fill: currentColor;
}
.copy-btn:hover {
transform: scale(1.08);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
.countdown-text {
margin-top: 8px;
font-size: 14px;
line-height: 1.6;
opacity: 0.8;
letter-spacing: 0.5px;
color: #C0C0C0;
}
.button-container {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 16px;
width: 100%;
}
.button {
padding: 0;
border-radius: 16px;
border: none;
cursor: pointer;
font-size: 16px;
font-weight: 600;
width: 100%;
max-width: 150px;
height: 50px;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
letter-spacing: 0.8px;
position: relative;
overflow: hidden;
}
.cancel-button {
background-color: #242424;
color: #E0E0E0;
}
.confirm-button {
background-color: #3B82F6;
color: #FFF;
}
.button::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.6s ease;
}
.button:hover::after {
left: 100%;
}
.button:hover {
transform: translateY(-3px);
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.button:active {
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
body.light {
background: linear-gradient(135deg, #F8FAFF, #EFF6FF);
color: #1E293B;
}
body.light .loading {
background: rgba(255,255,255,0.75);
border-color: rgba(255, 255, 255, 0.2);
}
body.light .loading:hover {
box-shadow: 0 0 60px rgba(59,130,246,0.18);
}
body.light .description {
color: #1E293B;
}
body.light .url-text {
color: #2A3B4C;
}
body.light .countdown-text {
color: #64748B;
}
body.light .jump-url {
background-color: rgba(255, 255, 255, 0.9);
color: #1E293B;
border-color: rgba(255,255,255,0.15);
}
body.light .copy-btn-container {
background: linear-gradient(to left, rgba(255,255,255,0.9) 70%,transparent 100%);
}
body.light .copy-btn {
background-color: rgba(255, 255, 255, 0.95);
color: #475569;
border-color: rgba(164, 164, 164, 0.2);
}
body.light .cancel-button {
background-color: #EFF6FF;
color: #2563EB;
}
body.light .confirm-button {
background-color: #2563EB;
color: white;
}
body.light .theme-switch {
background: rgba(255,255,255,0.9);
color: #2563EB;
border: 1px solid rgba(37, 99, 235, 0.15);
}
body.light .modal-content, body.light .copy-success-content {
background: rgba(255,255,255,0.88);
color: #1E293B;
border-color: rgba(255, 255, 255, 0.25);
}
body.light .modal-btn.understand, body.light .copy-success-btn.know {
background-color: #2563EB;
color: white;
}
body.light .modal-btn.feedback {
background-color: #EFF6FF;
color: #2563EB;
}
body.dark {
background: linear-gradient(135deg, #121212, #181818);
color: #E0E0E0;
}
body.dark .loading {
background: rgba(26, 26, 26, 0.75);
border-color: rgba(40, 40, 40, 0.5);
}
body.dark .loading:hover {
box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
}
body.dark .description {
color: #E0E0E0;
}
body.dark .url-text, body.dark .countdown-text {
color: #C0C0C0;
}
body.dark .jump-url {
background-color: rgba(26, 26, 26, 0.8);
color: #E0E0E0;
border-color: rgba(40, 40, 40, 0.5);
}
body.dark .copy-btn-container {
background: linear-gradient(to left, rgba(26,26,26,0.8) 70%,transparent 100%);
}
body.dark .copy-btn {
background-color: rgba(26, 26, 26, 0.95);
color: #C0C0C0;
border-color: rgba(40, 40, 40, 0.5);
}
body.dark .cancel-button {
background-color: #242424;
color: #E0E0E0;
}
body.dark .confirm-button {
background-color: #3B82F6;
color: #FFF;
}
body.dark .theme-switch {
background: rgba(26, 26, 26, 0.9);
color: #3B82F6;
border-color: rgba(40, 40, 40, 0.5);
}
body.dark .modal-content, body.dark .copy-success-content {
background: rgba(26, 26, 26, 0.88);
color: #E0E0E0;
border-color: rgba(40, 40, 40, 0.8);
}
body.dark .modal-btn.understand, body.dark .copy-success-btn.know {
background-color: #3B82F6;
color: white;
}
body.dark .modal-btn.feedback {
background-color: #242424;
color: #E0E0E0;
}
@media (max-width: 480px) {
.loading {
padding: 32px 28px;
}
.description {
font-size: 22px;
}
.jump-url {
font-size: 14px;
padding: 16px 20px;
}
.button {
max-width: 130px;
height: 46px;
font-size: 15px;
}
.theme-switch {
width: 48px;
height: 48px;
margin-top: 20px;
}
.theme-switch svg {
width: 24px;
height: 24px;
}
.modal-content, .copy-success-content {
padding: 32px 28px;
}
.modal-title, .copy-success-title {
font-size: 20px;
}
.modal-btn, .copy-success-btn {
padding: 10px 24px;
}
}
</style>
</head>
<body class="dark">
<div class="tip-modal" id="tipModal">
<div class="modal-content">
<div class="modal-title">内容审查提示</div>
<div class="modal-desc">内容审查严格,需自行点击跳转至目标链接。如有非法、违规等问题链接,请点击下方反馈按钮提交处理。</div>
<div class="modal-buttons">
<button class="modal-btn understand" id="understandBtn">我知道了</button>
<button class="modal-btn feedback" id="feedbackBtn" onclick="window.location.href='https://feedback.koxiuqiu.cn'">问题反馈</button>
</div>
</div>
</div>
<div class="copy-success-modal hidden" id="copySuccessModal">
<div class="copy-success-content">
<div class="copy-success-title">复制成功</div>
<div class="copy-success-desc">链接已成功复制到剪贴板,可直接粘贴使用</div>
<div class="copy-success-buttons">
<button class="copy-success-btn know" id="knowBtn">了解</button>
</div>
</div>
</div>
<div class="container">
<div class="avatar-placeholder"></div>
<img src="" alt="头像" class="avatar">
<div class="description">朽丘秋雨</div>
<div class="subtitle">安全提示</div>
<div class="loading">
<div class="content">
<div class="url-text">您即将离开本站,跳转到:</div>
<div class="jump-url" id="jump-url">
<span id="jump-url-text"></span>
<div class="copy-btn-container">
<button class="copy-btn" onclick="copyToClipboard()">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
<path d="M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"/>
</svg>
</button>
</div>
</div>
</div>
<div class="countdown-text">💡请自行确认链接安全性,手动点击跳转</div>
<div class="button-container">
<button class="button cancel-button" onclick="closeWindow()">取消跳转</button>
<button class="button confirm-button" onclick="jump()">立即跳转</button>
</div>
</div>
<button class="theme-switch" id="themeSwitch">
<span class="tooltip">是否切换主题</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="themeIcon">
<path d="M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32V64 448 480c0 17.7 14.3 32 32 32s32-14.3 32-32V416l64.3-64.3c43.1 25.7 95.8 32.8 141.7 19.4c61.4-18.3 103.9-75.1 103.9-139.1c0-97.2-78.8-176-176-176c-64 0-120.8 42.5-139.1 103.9c-13.4 45.9-6.3 98.6 19.4 141.7L64 416V32z"/>
</svg>
</button>
</div>
<script type="text/javascript">
function updateThemeIcon(theme) {
const icon = document.getElementById('themeIcon');
if (theme === 'dark') {
icon.innerHTML = '<path d="M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32V64 448 480c0 17.7 14.3 32 32 32s32-14.3 32-32V416l64.3-64.3c43.1 25.7 95.8 32.8 141.7 19.4c61.4-18.3 103.9-75.1 103.9-139.1c0-97.2-78.8-176-176-176c-64 0-120.8 42.5-139.1 103.9c-13.4 45.9-6.3 98.6 19.4 141.7L64 416V32z"/>';
} else {
icon.innerHTML = '<path d="M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9 165.7 509.2c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 1.8c4.5-3.1 10.2-3.7 15.2-1.6zM256 128a128 128 0 1 0 0 256 128 128 0 1 0 0-256z"/>';
}
}
function toggleTheme() {
const body = document.body;
let newTheme = 'light';
if (body.classList.contains('light')) {
newTheme = 'dark';
body.classList.remove('light');
body.classList.add('dark');
} else {
newTheme = 'light';
body.classList.remove('dark');
body.classList.add('light');
}
localStorage.setItem('theme', newTheme);
updateThemeIcon(newTheme);
window.dispatchEvent(new StorageEvent('storage', { key: 'theme', newValue: newTheme }));
}
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
return r ? decodeURIComponent(r[2]) : null;
}
// ======================
// ✅ 修复解码逻辑,匹配JS加密规则
// ======================
function decodeSafeUrlParam(paramStr) {
try {
// 1. 还原URL安全字符
const base64 = paramStr.replace(/-/g, '+').replace(/_/g, '/');
// 2. 补全Base64等号
const paddedBase64 = base64.padEnd(base64.length + (4 - base64.length % 4) % 4, '=');
// 3. Base64解码
const decoded = atob(paddedBase64);
// 4. URI解码还原原始URL
return decodeURIComponent(decoded);
} catch (e) {
console.warn('URL解码失败,使用原始值:', e);
return paramStr;
}
}
let jump_url = GetQueryString('url');
if (jump_url) {
jump_url = decodeSafeUrlParam(jump_url);
}
const UrlReg = new RegExp('^((http|https|thunder|qqdl|ed2k|Flashget|qbrowser|ftp|rtsp|mms)://)', 'i');
if (!jump_url || !UrlReg.test(jump_url)) {
document.title = '参数错误,正在返回首页...';
jump_url = location.origin;
}
function jump() {
location.href = jump_url;
}
// ========== 核心修改:重写closeWindow函数 ==========
function closeWindow() {
// 检测微信浏览器
function isWeChat() {
return /MicroMessenger/i.test(navigator.userAgent);
}
// 检测QQ浏览器(排除微信内置QQ浏览器)
function isQQ() {
return /QQ/i.test(navigator.userAgent) && !/MicroMessenger/i.test(navigator.userAgent);
}
// 微信环境:调用微信JS桥关闭窗口(微信专属API)
if (isWeChat()) {
if (typeof WeixinJSBridge !== "undefined") {
WeixinJSBridge.call('closeWindow');
} else {
// 微信JS桥未初始化时,监听就绪事件再执行
document.addEventListener('WeixinJSBridgeReady', function () {
WeixinJSBridge.call('closeWindow');
}, { once: true });
}
}
// QQ环境:调用QQ浏览器专属API关闭窗口
else if (isQQ()) {
try {
if (typeof mqq !== "undefined" && mqq.ui && mqq.ui.closeWebView) {
mqq.ui.closeWebView();
} else {
fallbackBack();
}
} catch (e) {
fallbackBack();
}
}
// 普通浏览器:强制关闭当前窗口(独立窗口)/返回上一页(标签页)
else {
window.opener = null; // 解除与父窗口关联,避免关闭权限问题
window.open('', '_self'); // 清空当前窗口地址
window.close(); // 关闭当前窗口
}
}
// ========== 优化fallbackBack兜底函数 ==========
function fallbackBack() {
if (window.history.length <= 1) {
window.location.href = location.origin; // 无历史记录则返回首页
} else {
window.history.back(); // 有历史记录则返回上一页
}
}
function showCopySuccess() {
const copyModal = document.getElementById('copySuccessModal');
copyModal.classList.remove('hidden');
}
function closeCopySuccessModal() {
const copyModal = document.getElementById('copySuccessModal');
copyModal.classList.add('hidden');
}
function copyToClipboard() {
const urlText = document.getElementById('jump-url-text').textContent;
navigator.clipboard.writeText(urlText).then(showCopySuccess)
.catch(() => {
const tempInput = document.createElement('input');
tempInput.value = urlText;
document.body.appendChild(tempInput);
tempInput.select();
document.execCommand('copy');
document.body.removeChild(tempInput);
showCopySuccess();
});
}
async function loadAvatar() {
const avatarImg = document.querySelector('.avatar');
const placeholder = document.querySelector('.avatar-placeholder');
const img = new Image();
img.src = '【你的中间页的logo图标】';
img.onload = function () {
avatarImg.src = img.src;
avatarImg.style.display = 'block';
placeholder.style.display = 'none';
}
img.onerror = function() {
placeholder.style.display = 'none';
}
}
function closeTipModal() {
const modal = document.getElementById('tipModal');
modal.classList.add('hidden');
}
function handleFeedback() {
window.open(location.origin + '/feedback', '_blank');
closeTipModal();
}
window.addEventListener('load', function () {
loadAvatar();
const jumpUrlElement = document.getElementById('jump-url-text');
jumpUrlElement.textContent = jump_url;
const countdownText = document.querySelector('.countdown-text');
countdownText.textContent = "💡请自行确认链接安全性,手动点击跳转";
document.getElementById('themeSwitch').addEventListener('click', toggleTheme);
document.getElementById('understandBtn').addEventListener('click', closeTipModal);
document.getElementById('feedbackBtn').addEventListener('click', handleFeedback);
document.getElementById('knowBtn').addEventListener('click', closeCopySuccessModal);
});
</script>
</body>
</html>