-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
164 lines (153 loc) · 5.78 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
<!DOCTYPE html>
<html>
<head>
<title>Proxy Settings</title>
<style>
.github-link {
position: absolute;
top: 10px;
right: 10px;
text-decoration: none;
color: #333;
display: flex;
align-items: center;
gap: 5px;
font-size: 14px;
}
.github-icon {
width: 20px;
height: 20px;
}
.proxy-list-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1000;
}
.modal-content {
position: relative;
background: white;
margin: 10% auto;
padding: 20px;
width: 80%;
max-height: 70vh;
border-radius: 5px;
overflow-y: auto;
}
.close-modal {
position: absolute;
right: 10px;
top: 10px;
cursor: pointer;
font-size: 20px;
}
.view-list-link {
color: #4CAF50;
text-decoration: underline;
cursor: pointer;
margin-left: 10px;
}
</style>
</head>
<body>
<!-- GitHub link -->
<a href="https://github.com/justinleei/FirewallBypass" target="_blank" class="github-link">
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTIgMGMtNi42MjYgMC0xMiA1LjM3My0xMiAxMiAwIDUuMzAyIDMuNDM4IDkuOCA4LjIwNyAxMS4zODcuNi4xMTEuNzkzLS4yNjEuNzkzLS41Nzd2LTIuMjM0Yy0zLjMzOC43MjYtNC4wMzMtMS40MTYtNC4wMzMtMS40MTYtLjU0Ni0xLjM4Ny0xLjMzMy0xLjc1Ni0xLjMzMy0xLjc1Ni0xLjA4OS0uNzQ1LjA4My0uNzI5LjA4My0uNzI5IDEuMjA1LjA4NCAxLjgzOSAxLjIzNyAxLjgzOSAxLjIzNyAxLjA3IDEuODM0IDIuODA3IDEuMzA0IDMuNDkyLjk5Ny4xMDctLjc3NS40MTgtMS4zMDUuNzYyLTEuNjA0LTIuNjY1LS4zMDUtNS40NjctMS4zMzQtNS40NjctNS45MyAwLTEuMzEuNDY1LTIuMzggMS4yMzUtMy4yMi0uMTM1LS4zMDMtLjU0LTEuNTIzLjEwNS0zLjE3NiAwIDAgMS4wMDUtLjMyMiAzLjMgMS4yMy45Ni0uMjY3IDEuOTgtLjM5OSAzLS40MDUgMS4wMi4wMDYgMi4wNC4xMzggMyAuNDA1IDIuMjgtMS41NTIgMy4yODUtMS4yMyAzLjI4NS0xLjIzLjY0NSAxLjY1My4yNCAyLjg3My4xMiAzLjE3Ni43NjUuODQgMS4yMyAxLjkxIDEuMjMgMy4yMiAwIDQuNjEtMi44MDUgNS42MjUtNS40NzUgNS45Mi40Mi4zNi44MSAxLjA5Ni44MSAyLjIydjMuMjljMCAuMzEuMTkyLjY5NC44MDEuNTc2IDQuNzY1LTEuNTg5IDguMTk5LTYuMDg2IDguMTk5LTExLjM4NiAwLTYuNjI3LTUuMzczLTEyLTEyLTEyeiIvPjwvc3ZnPg=="
alt="GitHub" class="github-icon">
View on GitHub
</a>
<!-- Main table -->
<table style="border-collapse: separate; border-spacing: 0; border: 1px solid #ccc; border-radius: 10px; width: 100%; margin-top: 40px;">
<tr>
<td style="padding: 10px;">
<label style="display: flex; align-items: center;">
<input type="checkbox" id="useSystemProxy" style="margin-right: 5px;">
<span>Use System Proxy Settings</span>
<span class="view-list-link" id="viewProxyList">View Proxy List</span>
</label>
</td>
</tr>
<tr>
<td style="padding: 10px;">
<label style="display: flex; align-items: center;">
<span style="flex: 0 0 35px;">Type:</span>
<select id="proxyType" style="flex: 1; border-radius: 5px; border: 1px solid #ccc; padding: 5px;">
<option value="http">HTTP</option>
<option value="https">HTTPS</option>
<option value="socks5">SOCKS5</option>
</select>
</label>
</td>
</tr>
<tr>
<td style="padding: 10px;">
<label style="display: flex; align-items: center;">
<span style="flex: 0 0 35px;">Host:</span>
<input type="text" id="proxyHost" style="flex: 1; border-radius: 5px; border: 1px solid #ccc; padding: 5px;">
</label>
</td>
</tr>
<tr>
<td style="padding: 10px;">
<label style="display: flex; align-items: center;">
<span style="flex: 0 0 35px;">Port:</span>
<input type="number" id="proxyPort" style="flex: 1; border-radius: 5px; border: 1px solid #ccc; padding: 5px;">
</label>
</td>
</tr>
<tr>
<td style="padding: 10px;">
<label style="display: block; margin-bottom: 5px;">Additional Proxy Domains (one domain per line, supports * wildcard):</label>
<textarea id="proxyDomains" style="width: 100%; height: 100px; border-radius: 5px; border: 1px solid #ccc; padding: 5px;"
placeholder="Examples:
Add domain: *.example.com
specific-domain.com
Exclude domain: !*.google.com
!facebook.com"></textarea>
</td>
</tr>
<tr>
<td style="padding: 10px; text-align: center;">
<button id="saveButton" style="border-radius: 5px; padding: 8px 20px; background-color: #4CAF50; color: white; border: none; cursor: pointer;">Save</button>
</td>
</tr>
</table>
<!-- Proxy List Modal -->
<div id="proxyListModal" class="proxy-list-modal">
<div class="modal-content">
<span class="close-modal" id="closeModal">×</span>
<h2>Proxy List</h2>
<!-- Add search box -->
<div style="margin-bottom: 15px;">
<input type="text"
id="searchBox"
placeholder="Search domains..."
style="width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;">
</div>
<!-- Add count display -->
<div id="resultCount"
style="margin-bottom: 10px;
font-size: 14px;
color: #666;">
</div>
<pre id="proxyListContent"
style="white-space: pre-wrap;
word-wrap: break-word;
max-height: 60vh;
overflow-y: auto;
background: #f5f5f5;
padding: 10px;
border-radius: 4px;"></pre>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>