-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
97 lines (86 loc) · 2.84 KB
/
popup.html
File metadata and controls
97 lines (86 loc) · 2.84 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>批量打开链接</title>
<style>
body {
width: 300px;
padding: 10px;
font-family: Arial, sans-serif;
}
button {
width: 30%;
padding: 8px;
margin-top: 10px;
margin-right: 10px;
background-color: #4285f4;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #3367d6;
}
#status {
margin-top: 10px;
font-size: 12px;
color: #666;
}
.title{
font-size: 14px;
font-weight: bold;
margin-top: 0px;
margin-bottom: 5px;
}
#refreshLinksBtn:hover{
cursor: pointer;
}
</style>
</head>
<body>
<p class="title">批量打开链接</p>
<div id="status"></div>
<p id="refreshLinksBtn">重新获取链接</p>
<div style="margin-top: 10px;">
<label for="sameDomainCheckbox">
<span id="currentDomain">加载中...</span> <input type="checkbox" id="sameDomainCheckbox" checked>
</label>
</div>
<div style="margin-top: 10px;">
<input type="text" id="filterInput" placeholder="输入筛选关键词..." style="width: 100%; padding: 5px; box-sizing: border-box;">
</div>
<div style="margin-top: 10px;">
<input type="text" id="excludeInput" placeholder="输入排除关键词(逗号分隔)..." style="width: 100%; padding: 5px; box-sizing: border-box;">
</div>
<div style="margin-top: 10px;">
<label style="font-size: 12px;">打开方式:</label>
<div style="margin-top: 3px;">
<label style="display: block; margin-bottom: 3px;">
<input type="radio" name="openMethod" value="new" checked> 新窗口
</label>
<label style="display: block;">
<input type="radio" name="openMethod" value="current"> 当前窗口
</label>
</div>
</div>
<div style="margin-top: 10px;">
<label for="delayInput" style="font-size: 12px;">打开延迟(ms):</label>
<input type="number" id="delayInput" value="20" min="0" style="width: 100%; padding: 5px; box-sizing: border-box; margin-top: 3px;">
</div>
<div style="margin-top: 10px;">
<label for="limitInput" style="font-size: 12px;">数量限制:</label>
<input type="number" id="limitInput" value="50" min="1" style="width: 100%; padding: 5px; box-sizing: border-box; margin-top: 3px;">
</div>
<div style="margin-top: 10px;">
<div id="toggleLinksBtn" style="cursor: pointer; color: #4285f4; font-size: 12px; margin-bottom: 5px;">
▶️ 显示匹配的链接
</div>
<div id="linksList" style="max-height: 0; overflow-y: auto; transition: max-height 0.3s ease-out; font-size: 12px;"></div>
</div>
<button id="getLinksBtn" >批量打开</button>
<button id="closeLinksBtn">批量关闭</button>
<script src="popup.js"></script>
</body>
</html>