-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathimg.html
39 lines (39 loc) · 1.05 KB
/
img.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
<!DOCTYPE html>
<html lang="zh_CN" style="height: 100%">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, minimum-scale=0.1" />
<meta name="referrer" content="no-referrer" />
<title>图片</title>
<style></style>
</head>
<body style="display: flex; margin: 0px; background: #0e0e0e; height: 100%">
<img
style="
display: block;
-webkit-user-select: none;
max-width: 100%;
margin: auto;
background-color: hsl(0, 0%, 90%);
transition: background-color 300ms;
"
src=""
alt=""
/>
<script>
const search = location.search;
const params = search.split('zzzz');
const u = params[0].replace('?', '');
// const u = '552a7b263c14e58da920d932814246a7bcb82616';
const expires = params[1];
if (expires) {
const now = new Date().getTime();
if (now > expires) {
window.location.href = 'https://www.bilibili.com';
}
}
const img = document.querySelector('img');
img.src = `https://article.biliimg.com/bfs/article/${u}.png`;
</script>
</body>
</html>