-
Notifications
You must be signed in to change notification settings - Fork 596
/
popup.html
172 lines (167 loc) · 5.23 KB
/
popup.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style type="text/css">
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
transform: scale(.5, .5);
}
.switch input {display:none;}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .05s;
transition: .05s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .05s;
transition: .05s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
</style>
<style>
.button {
display: inline-block;
border-radius: 4px;
background-color: #f4511e;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 15px;
padding: 10px;
width: 160px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '»';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.button:hover span {
padding-right: 25px;
}
.button:hover span:after {
opacity: 1;
right: 0;
}
.button2 {
display: inline-block;
padding: 10px;
font-size: 15px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
width: 160px;
transition: all 0.5s;
margin: 5px;
color: #fff;
background-color: #f4511e;
border: none;
border-radius: 4px;
box-shadow: 0 3px #999;
}
.button2:hover {background-color: #b62f04}
.button2:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
</style>
</head>
<body style="width: 180px;">
<label class="switch">
<input type="checkbox" data-key="config-hook-global"><div class="slider"></div>
</label>
<div style="float: right; padding: 10px">是否挂钩总开关</div>
<label class="switch">
<input type="checkbox" data-key="config-hook-log-toggle"><div class="slider"></div>
</label>
<div style="float: right; padding: 10px">开关输出日志</div>
<label class="switch">
<input type="checkbox" data-key="config-myinject_toggle"><div class="slider"></div>
</label>
<div style="float: right; padding: 10px">是否注入代码</div>
<label class="switch">
<input type="checkbox" data-key="config-replacer_toggle"><div class="slider"></div>
</label>
<div style="float: right; padding: 10px">是否替换返回值</div>
<label class="switch">
<input type="checkbox" data-key="config-pac_proxy"><div class="slider"></div>
</label>
<div style="float: right; padding: 10px">是否开启pac代理</div>
<!-- <label class="switch">
<input type="checkbox" data-key="config-hook-new-tab"><div class="slider"></div>
</label>
<div style="float: right; padding: 10px">配置newTab页</div> -->
<div>
<button id="showoptions" class="button" style="vertical-align:middle"><span>打开配置页面</span></button>
<button id="ast_page" class="button" style="vertical-align:middle"><span>ast工具页面</span></button>
<button id="diff_page" class="button" style="vertical-align:middle"><span>文本对比页面</span></button>
<button id="addlistener" class="button2" style="vertical-align:middle"><span>生成临时环境</span></button>
<button id="create_high_env" class="button2" style="vertical-align:middle"><span>生成高级环境</span></button>
<!-- <button id="logtoggle" class="button2" style="vertical-align:middle"><span>开关输出日志</span></button> -->
<!-- <button id="clone_page" class="button2" style="vertical-align:middle"><span>拷贝当前页面</span></button> -->
<hr>
<button id="update_page" class="button2" style="vertical-align:middle">
<span>ver: 1.1</span><br>
<span>打开工具更新地址</span>
</button>
<button id="wx_zsxq_page" class="button2" style="vertical-align:middle">
<span>知识星球</span>
</button>
<button id="qq_group_page" class="button2" style="vertical-align:middle">
<span>点击加入QQ群:</span><br>
<span>797747562</span>
</button>
<!-- <div style="padding: 10px">QQ群: 797747562</div> -->
</div>
<script src="./tools/_config_hook_list.js"></script>
<script src="./tools/common.js"></script>
<script src="./tools/sub_logger.js"></script>
<script src="./tools/mod_code_getter.js"></script>
<script src="popup.js"></script>
</body>
</html>