forked from henices/Chrome-proxy-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
226 lines (224 loc) · 10.6 KB
/
options.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<html>
<head>
<title>Options</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="stylesheets/chrome-bootstrap.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/options.css" />
<script type="text/javascript" src="javascripts/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="javascripts/options-ui.js"></script>
<script type="text/javascript" src="javascripts/options.js"></script>
</head>
<body class="chrome-bootstrap">
<div class="frame">
<div class="navigation">
<h1>
<a style="font-size:18px" data-i18n-content="Options">Options</a>
</h1>
<ul class="menu">
<li class="selected">
<a href="#general" data-i18n-content="General">General</a>
</li>
<li>
<a href="#pac-config" data-i18n-content="PAC">PAC</a>
</li>
<li>
<a href="#rules" data-i18n-content="Rules">Rules</a>
</li>
<li>
<a href="#auth-config" data-i18n-content="authConfig">Authentication</a>
</li>
</ul>
<ul class="menu">
<li>
<a href="#about" data-i18n-content="About">About</a>
</li>
</ul>
</div>
<div class="mainview view">
<div id="general" class="selected">
<header><h1></h1></header>
<div class="content">
<h3 data-i18n-content="proxy_servers">Proxy servers</h3>
<section>
<div>
<span class="ip_label" data-i18n-content="http_proxy">HTTP PROXY:</span>
<input type="text" id="http-host" size="15"/>
<span class="port_label" data-i18n-content="port">PORT:</span>
<input type="text" size="6" id="http-port"/>
</div>
<div>
<span class="ip_label" data-i18n-content="https_proxy">HTTPS PROXY:</span>
<input type="text" id="https-host" size="15"/>
<span class="port_label" data-i18n-content="port">PORT:</span>
<input type="text" size="6" id="https-port"/>
</div>
<div>
<span class="ip_label" data-i18n-content="socks_proxy">SOCKS PROXY:</span>
<input type="text" id="socks-host" size="15"/>
<span class="port_label" data-i18n-content="port">PORT:</span>
<input type="text" size="6" id="socks-port"/>
</div>
<div class="socks">
<input type="radio" id="socks4"/>
<span style="font-size:80%;">SOCKS4</span>
<input type="radio" id="socks5"/>
<span style="font-size:80%;">SOCKS5</span>
</div>
<div>
<span class="ip_label" data-i18n-content="quic_proxy">QUIC PROXY:</span>
<input type="text" id="quic-host" size="15"/>
<span class="port_label" data-i18n-content="port">PORT:</span>
<input type="text" size="6" id="quic-port"/>
</div>
</section>
<h3 data-i18n-content="advanced_settings">Advanced settings</h3>
<section>
<div>
<span class="field_label" style="width: 105px;" data-i18n-content="proxy_rules">Proxy mode: </span>
<select id="proxy-rule" >
<option value="singleProxy">singleProxy</option>
<option value="proxyForHttp">proxyForHttp</option>
<option value="proxyForHttps">proxyForHttps</option>
<option value="proxyForFtp">proxyForFtp</option>
<option value="fallbackProxy">fallbackProxy</option>
</select>
</div>
</section>
</div>
</div>
<div id="rules">
<header><h1></h1></header>
<div class="content">
<section>
<h3 data-i18n-content="rules_mode">Rules Mode</h3>
<select id='rules-mode'>
<option data-i18n-content="Whitelist" value="Whitelist">Whitelist</option>
<!--
<option data-i18n-content="Blacklist" value="Blacklist">Blacklist</option>
-->
</select>
</section>
<section id='whitelist'>
<h3 data-i18n-content="config_bypasslist">Bypass List</h3>
<p data-i18n-content="domain_in_bypasslist">Domains in bypass list will Never use a proxy</p>
<div class="section">
<textarea id="bypasslist" cols="40" rows="10" placeholder="192.168.1.1/16,*.foobar.com,*foobar.com:99,https://x.*.y.com:99"></textarea>
<a href='#' class='tooltip'>
<img src="images/help.gif">
<span>
<img class="callout" src="images/callout.gif"/>
192.168.1.1/16, <br/>
*.foobar.com, <br/>
*foobar.com:99, <br/>
https://x.*.y.com:99
</span>
</a>
</div>
<h4 data-i18n-content="use_predefine_list">Use internal proxy bypass list</h3>
<div class="checkbox">
<input id='china-list' type="checkbox" id="use-china-list"/>
<span data-i18n-content="china_list">China List</span>
</div>
</section>
<section id='blacklist'>
<h3 data-i18n-content="config_proxylist">Proxy List</h3>
<p data-i18n-content="domain_in_proxy">Domains in list will use a proxy</p>
<div class="section">
<textarea id="proxylist" cols="40" rows="10" placeholder=""></textarea>
</div>
</section>
</div>
</div>
<div id="auth-config">
<header><h1></h1></header>
<div class="content">
<h3 data-i18n-content="authentication">Authentication</h3>
<section>
<div>
<span class="field_label" style="width: 100px;" data-i18n-content="user">Username:</span>
<input type="text" id="username" size="15"></input>
<a href='#' class='tooltip'>
<img src="images/help.gif">
<span>
<img class="callout" src="images/callout.gif"/>
<strong>chrome api doesn't support socks authentication</strong><br/>
</span>
</a>
</div>
<div>
<span class="field_label" style="width: 100px;" data-i18n-content="pass">Password:</span>
<input type="password" id="password" size="15"></input>
</div>
</section>
</div>
</div>
<div id="pac-config">
<header><h1></h1></header>
<div class="content">
<h3>Pac URL</h3>
<section>
<!-- <span class="field_label" style="width: 100px;" data-i18n-content="pac_path">PAC PATH:</span> -->
<div>
<select id="pac-type">
<option>http://</option>
<option>https://</option>
</select>
<input type="text" size="30" id="pac-script-url" placeholder="127.0.0.1/proxy.pac"></input>
<a href='#' class='tooltip'>
<img src="images/help.gif">
<span>
<img class="callout" src="images/callout.gif"/>
<strong>Remote pac script:</strong><br/>
http://127.0.0.1/proxy.pac
<br>
https://127.0.0.1/proxy.pac
</span>
</a>
<div>
</section>
<h3 data-i18n-content="pac_data">Pac Script</h3>
<section>
<input type="file" id="pac-file" />
<textarea id="pac-data" cols="55" rows="10" style="margin-top:.5em; overflow-x:hidden"></textarea>
</section>
</div>
</div>
<div id="about">
<header><h1 data-i18n-content="About">About</h1></header>
<div class="content">
<h3>Chrome Web Store</h3>
<section class="section">
<img src="images/chrome_web_store.png"></img>
<a href="https://chrome.google.com/webstore/detail/proxy-helper/mnloefcpaepkpmhaoipjkpikbnkmbnic">Proxy Helper</a>
</section>
<h3>Open Source Licenses</h3>
<section>
<div>
<table class="simpletable">
<thead>
<tr>
<th>Library</th>
<th>License</th>
</tr>
</thead>
<tbody style="display: table-row-group;">
<tr>
<td><a href="https://jquery.org" target="_blank">jQuery</a></td>
<td><a href="https://github.com/jquery/jquery/blob/master/LICENSE.txt" target="_blank">LICENSE.txt</a></td>
</tr>
<tr>
<td><a href="https://github.com/roykolak/chrome-bootstrap" target="_blank">chrome-bootstrap</a></td>
<td><a href="http://opensource.org/licenses/mit-license.php" target="_blank">MIT</a></td>
</tr>
<tr></tr>
<tr></tr>
</tbody>
</table>
</div>
</section>
</div>
</div>
</div>
</div>
</body>
</html>