forked from qinlili23333/ctfileGet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
button.html
101 lines (98 loc) · 5.11 KB
/
button.html
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
<!DOCTYPE html>
<html>
<title>城通网盘解析器</title>
<head>
<meta name="description" content="解析城通网盘直连地址" />
<link rel="canonical" href="https://ctfile.qinlili.bid/" />
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<link rel="manifest" href="./manifest.json">
<meta name="theme-color" content="#FFFFFF">
<link rel="icon" href="./icon.png">
<link crossorigin="anonymous"
integrity="sha512-tH5CEoO7QorGJK5RZrcKozo5xe0qC0UgOhjkIoqXNVe9ApFAjJRbVFzDfVvdRUSOJ5g2Pw9VzzOBguouzhLoIQ=="
href="https://lib.baomitu.com/material-components-web/6.0.0/material-components-web.min.css" rel="stylesheet">
<script crossorigin="anonymous"
integrity="sha512-5zCl3JhN4Fqq6+irTX1v8J+77hwL54zTbrdl2Dl8YHe+KGcuV14C01u/uWFrSg+kZgOfGMneoUySVHqEgdRaPQ=="
src="https://lib.baomitu.com/material-components-web/6.0.0/material-components-web.min.js"></script>
<script src="./ctbtn.js"></script>
</head>
<body>
<button onclick="document.location.href='./legacy'" id="dlbtn" class="mdc-button foo-button">
<div class="mdc-button__ripple"></div>
<span class="mdc-button__label">返回传统版</span>
</button>
<br>
<H2>请输入链接和密码(可选)</H2>
<H4>下载地址有一定有效期,不可用于分享</H4>
<label style="width:100%;" class="mdc-text-field mdc-text-field--outlined" data-mdc-auto-init="MDCTextField">
<input id="link" class="mdc-text-field__input" aria-labelledby="my-label-id">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">文件ID(链接最后一串字符)</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
</label>
<br>
<br>
<label style="width:100%;" class="mdc-text-field mdc-text-field--outlined" data-mdc-auto-init="MDCTextField">
<input id="passcode" class="mdc-text-field__input" aria-labelledby="my-label-id">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">密码(留空则使用琴梨梨通用密码)</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
</label>
<br>
<br>
<button onclick="getInfo();" class="mdc-button foo-button">
<div class="mdc-button__ripple"></div>
<span class="mdc-button__label">获取下载地址</span>
</button>
<br>
<button onclick="document.location.href='https://qinlili.bid/Support/'" id="support" class="mdc-button foo-button">
<div class="mdc-button__ripple"></div>
<span class="mdc-button__label">支持琴梨梨</span>
</button>
<button onclick="document.location.href='https://github.com/qinlili23333/ctfileGet'" class="mdc-button foo-button">
<div class="mdc-button__ripple"></div>
<span class="mdc-button__label">本项目已开源</span>
</button>
<br>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1806614386308377"
crossorigin="anonymous"></script>
<!-- 城通 -->
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-1806614386308377" data-ad-slot="4999029283"
data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script>
var REFERRER_BLACKLIST = ['https://www.qvocd.cc/', 'https://funletu.com/'];
if (REFERRER_BLACKLIST.includes(document.referrer)) {
alert("禁止从该域名访问本站,该域名存在收费资源分享或强制性公众号引流,却没给我分钱\n你赚钱了,我没赚到钱,那我凭什么给你免费用?\n如果你是用户,你可以直接在新标签页地址栏输入本站域名https://ctfile.qinlili.bid访问\n如果你是站长想解除黑名单,给我打钱就行,你赚钱了我没赚到,那我在自己的地盘上恶心下你是必然的\n\n即将传送到琴梨梨小站首页...");
document.location.href = "https://qinlili.bid";
}
var btn;
const getInfo = async () => {
if (btn) { document.body.removeChild(btn) }
password = document.getElementById("passcode").value ? document.getElementById("passcode").value : "547873715";
btn = ctfile.makeBtn(document.getElementById("link").value, password);
document.body.insertBefore(btn, document.getElementById("support"));
}
const dlFile = () => {
funDownload(dlURL, jsonText.file_name);
}
</script>
<script>
window.mdc.autoInit();
document.querySelectorAll('.foo-button').forEach(element => {
mdc.ripple.MDCRipple.attachTo(element);
});
</script>
</body>
</html>