forked from sgzwiz/switchyplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
397 lines (380 loc) · 17.9 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<!--
Copyright (c) 2011 Shyc2001 (http://twitter.com/shyc2001)
This work is based on:
*"Switchy! Chrome Proxy Manager and Switcher" (by Mohammad Hejazi (mohammadhi at gmail d0t com))
*"SwitchyPlus" by @ayanamist (http://twitter.com/ayanamist)
This file is part of SwitchySharp.
SwitchySharp is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SwitchySharp is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SwitchySharp. If not, see <http://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<title>SwitchySharp Options</title>
<link rel="stylesheet" href="assets/styles/options.css" type="text/css"/>
<link rel="stylesheet" href="assets/styles/infoTip.css" type="text/css"/>
<link rel="stylesheet" href="assets/styles/helpToolTip.css" type="text/css"/>
<script src="assets/libs/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="assets/libs/jquery.base64.js" type="text/javascript"></script>
<script src="assets/libs/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>
<script src="assets/libs/FileSaver.js" type="text/javascript"></script>
<script src="assets/scripts/options.js" type="text/javascript"></script>
<script src="assets/scripts/infoTip.js" type="text/javascript"></script>
<script src="assets/scripts/helpToolTip.js" type="text/javascript"></script>
</head>
<body data-i18n-values=".style.direction:global_direction;.style.textAlign:global_textAlign">
<table id="optionsTable">
<tr>
<td>
<div id="header">
<table>
<tr>
<td style="width:100%">
<img src="assets/images/icon-128.png" width="50" class="title" alt="SwitchySharp"/>
<span class="title" data-i18n-content="options_headerTitle">SwitchySharp Options</span>
</td>
<td>
<!--img src="assets/images/close.png" class="close" title="Close" onclick="closeWindow();" /-->
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr id="tabsRow">
<td>
<div id="tabsContainer">
<div id="tabProfiles" class="selected">
<img src="assets/images/profile.png" style="width:16px;vertical-align:bottom;height:16px;"
alt="profile"/>
<span data-i18n-content="options_tabProxyProfiles">Proxy Profiles</span>
</div>
<div id="tabNetwork" class="normal">
<img src="assets/images/network.png" style="width:16px;vertical-align:bottom;height:16px;"
alt="network"/>
<span data-i18n-content="options_tabNetwork">Network</span>
</div>
<div id="tabGeneral" class="normal">
<img src="assets/images/options.png" style="width:16px;vertical-align:bottom;height:16px;"
alt="options"/>
<span data-i18n-content="options_tabGeneral">General</span>
</div>
<div id="tabImportExport" class="normal">
<img src="assets/images/save.png" style="width:16px;vertical-align:bottom;height:16px;" alt="save"/>
<span data-i18n-content="options_tabImportExport">Import/Export</span>
</div>
</div>
</td>
</tr>
<tr style="height:100%">
<td style="vertical-align:top">
<div id="body">
<div id="tabProfilesBody" class="tab">
<table id="proxyTable">
<tr>
<th data-i18n-content="options_proxyProfiles">Proxy Profiles</th>
<td></td>
<th data-i18n-content="options_profileDetails">Profile Details</th>
</tr>
<tr>
<td style="width:28%">
<table id="proxyProfiles">
<tr class="templateRow">
<td style="width:100%" data-i18n-content="options_untitledProfile">[Untitled Profile]</td>
<td style="width:28px">
<div class="color" title="Profile Color"
data-i18n-values="title:options_profileColor">
<div></div>
</div>
</td>
<td style="width:30px">
<div class="delete row" title="Delete Profile"
data-i18n-values="title:options_deleteProfile"></div>
</td>
</tr>
</table>
<button class="button" id="btn-new">
<img src="assets/images/add.png" alt="add"/>
<span data-i18n-content="options_newProfile">New Profile</span>
</button>
</td>
<td style="width:13px"></td>
<td>
<table id="profileDetails">
<tr class="indent">
<td><label for="profileName"><b data-i18n-content="options_profileName">Profile Name</b></label></td>
<td colspan="3"><input id="profileName" type="text"/></td>
</tr>
<tr>
<td colspan="4">
<hr/>
</td>
</tr>
<tr class="section">
<td colspan="4">
<label>
<input id="modeManual" type="radio" name="proxyMode"/>
<span><b data-i18n-content="options_manualConfig">Manual Configuration</b></span>
</label>
</td>
</tr>
<tr id="httpRow" class="indent">
<td><label for="httpProxyHost" data-i18n-content="options_httpProxy">HTTP Proxy</label></td>
<td><input id="httpProxyHost" type="text" class="ltr"/></td>
<td><label for="httpProxyPort" data-i18n-content="options_proxyPort">Port</label></td>
<td><input id="httpProxyPort" type="text" class="ltr"/></td>
</tr>
<tr id="sameProxyRow" class="indent">
<td></td>
<td colspan="3">
<label>
<input id="useSameProxy" type="checkbox"/>
<span data-i18n-content="options_useSameProxy">Use the same proxy server for all protocols</span>
</label>
</td>
</tr>
<tr id="httpsRow" class="indent">
<td><label for="httpsProxyHost" data-i18n-content="options_httpsProxy">HTTPS Proxy</label></td>
<td><input id="httpsProxyHost" type="text" class="ltr"/></td>
<td><label for="httpsProxyPort" data-i18n-content="options_proxyPort">Port</label></td>
<td><input id="httpsProxyPort" type="text" class="ltr"/></td>
</tr>
<tr id="ftpRow" class="indent">
<td><label for="ftpProxyHost" data-i18n-content="options_ftpProxy">FTP Proxy</label></td>
<td><input id="ftpProxyHost" type="text" class="ltr"/></td>
<td><label for="ftpProxyPort" data-i18n-content="options_proxyPort">Port</label></td>
<td><input id="ftpProxyPort" type="text" class="ltr"/></td>
</tr>
<tr id="socksRow" class="indent">
<td><label for="socksProxyHost" data-i18n-content="options_socksHost">SOCKS Host</label></td>
<td><input id="socksProxyHost" type="text" class="ltr"/></td>
<td><label for="socksProxyPort" data-i18n-content="options_proxyPort">Port</label></td>
<td><input id="socksProxyPort" type="text" class="ltr"/></td>
</tr>
<tr id="socksVersionRow" class="indent">
<td></td>
<td colspan="3">
<table>
<tr>
<td style="padding: 0 !important">
<label>
<input id="socksV4" type="radio" name="socksVersion"/>
<span data-i18n-content="options_socks4">SOCKS v4</span>
</label>
</td>
<td></td>
<td>
<label>
<input id="socksV5" type="radio" name="socksVersion"/>
<span data-i18n-content="options_socks5">SOCKS v5</span>
</label>
</td>
</tr>
</table>
</td>
</tr>
<tr class="section">
<td colspan="4">
<label>
<input id="modeAuto" type="radio" name="proxyMode"/>
<span><b data-i18n-content="options_autoConfig">Automatic Configuration</b></span>
</label>
</td>
</tr>
<tr id="configUrlRow" class="indent">
<td><label for="proxyConfigUrl" data-i18n-content="options_autoConfigUrl">Auto Config URL</label></td>
<td colspan="3"><input id="proxyConfigUrl" type="text" class="ltr"/></td>
</tr>
<tr class="indent">
<td colspan="4">
<input type="file" id="pfile" name="pfile" style="visibility:hidden;position:absolute;"/>
<button class="button"
data-i18n-content="options_importPAC" id="importPACButton">Import PAC File
</button>
</td>
</tr>
<tr>
<td colspan="4">
<hr/>
</td>
</tr>
<tr class="indent">
<td>
<label for="proxyExceptions"><b data-i18n-content="options_noProxyFor">No Proxy for</b></label>
<span data-help="noProxyFor"></span>
</td>
<td colspan="3"><input id="proxyExceptions" type="text" class="ltr"/></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="tabNetworkBody" class="tab">
<p>
<label>
<span class="title"><input id="chkMonitorProxyChanges" type="checkbox"/>
<span data-i18n-content="options_monitorProxyChanges">Monitor Proxy Changes</span>
<span data-help="monitorProxyChanges"></span>
</span>
</label>
</p>
<p>
<label>
<span class="indent"><input id="chkPreventProxyChanges" type="checkbox"/>
<span data-i18n-content="options_revertProxyChanges">Revert proxy changes done by other apps.</span>
<span data-help="revertProxyChanges"></span>
</span>
</label>
</p>
</div>
<div id="tabImportExportBody" class="tab">
<div class="title" data-i18n-content="options_headerTitle">SwitchySharp Options</div>
<table id="exportRulesTable" class="optionGroup">
<tr class="section">
<td>
<button class="button" id="makeBackup" data-i18n-content="options_makeBackup">Make Backup
</button>
</td>
<td data-i18n-content="options_makeBackup_help">
Make a full backup of your SwitchySharp options (including proxies, rules and all other options).
</td>
</tr>
<tr class="section">
<td>
<input type="file" id="rfile" name="rfile" style="visibility:hidden;position:absolute;"/>
<button class="button" id="RestoreFileButton" data-i18n-content="options_restoreLocal">
Restore from File
</button>
</td>
<td data-i18n-content="options_restoreLocal_help">
Restore your SwitchySharp options from a local file.
</td>
</tr>
<tr class="section">
<td>
<button class="button" id="restoreBackup" data-i18n-content="options_restoreBackup">Restore from
Online
</button>
</td>
<td>
<label for="txtBackupFilePath"></label><input type="text" id="txtBackupFilePath" class="initial ltr"
value="Backup file URL (e.g. 'http://example.com/switchy.bak')"
data-i18n-values="value:options_restoreBackup_help"/>
</td>
</tr>
</table>
</div>
<div id="tabGeneralBody" class="tab">
<label>
<span class="title"><input id="chkQuickSwitch" type="checkbox"/>
<span data-i18n-content="options_quickSwitch">Quick Switch</span>
<span data-help="quickSwitch"></span>
</span>
</label>
<div id="quickSwitchDiv" class="indent">
<p>
<label class="title" data-i18n-content="options_cycledProfiles">Cycled Profiles (drag to sort):</label>
</p>
<p data-i18n-content="options_quickSwitch_cycle_help">When you click on the icon, SwitchySharp will apply the
following profiles in their order.</p>
<ul id="cycleEnabled" class="indent"></ul>
<p class="title" data-i18n-content="options_notCycledProfiles">Not cycled Profiles (drag to the above box to
enable):</p>
<ul id="cycleDisabled" class="indent"></ul>
</div>
<hr/>
<div class="title">
<span data-i18n-content="options_startupProfile">Startup Profile:</span>
<span data-help="startupProfile"></span>
</div>
<p>
<label for="cmbStartupProfile"></label><select id="cmbStartupProfile"></select>
</p>
<hr/>
<div class="title" data-i18n-content="options_miscOptions">Misc Options</div>
<p>
<label>
<span class="indent"><input id="chkConfirmDeletion" type="checkbox"/>
<span data-i18n-content="options_confirmDeletion">Confirm profile/rule deletion.</span>
<span data-help="confirmDeletion"></span>
</span>
</label>
</p>
<p>
<label>
<span class="indent"><input id="chkRefreshTab" type="checkbox"/>
<span data-i18n-content="options_RefreshTab">Refresh current tab on profile change</span>
<span data-help="refreshTab"></span>
</span>
</label>
</p>
</div>
<div class="control">
<hr/>
<table>
<tr>
<td style="width:100%">
<button class="button" id="resetOptions"
data-i18n-content="options_resetOptions">Reset Options
</button>
</td>
<td>
<button class="button bold" id="saveOptions" data-i18n-content="options_save">
Save
</button>
</td>
<td></td>
<td>
<button class="button" id="closeWindow" data-i18n-content="options_close">Close
</button>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
<div id="helpToolTips">
<div class="help" id="help_noProxyFor">
<p data-i18n-content="options_noProxyFor_help">Use semicolons ( ; ) to seperate entries.</p>
</div>
<div class="help" id="help_monitorProxyChanges">
<p data-i18n-content="options_monitorProxyChanges_help">Repeatedly check for changes in proxy settings done by
other applications, and update SwitchyPlus icon to reflect those changes.</p>
</div>
<div class="help" id="help_revertProxyChanges">
<p data-i18n-content="options_revertProxyChanges_help">Revert any change in proxy settings done by other
applications.</p>
</div>
<div class="help" id="help_quickSwitch" data-i18n-content="options_quickSwitch_help">
<p>Allows you to switch among proxy profiles in one click (by clicking on SwitchySharp icon). When you click on
the icon, SwitchySharp will apply the following profiles in their order.</p>
<hr/>
<p><b>Note:</b> After enabling this feature you won't be able to see SwitchySharp main menu when clicking on
SwitchySharp icon. To open Option page again, right-click on the icon and then click "Options".</p>
</div>
<div class="help" id="help_confirmDeletion">
<p data-i18n-content="options_confirmDeletion_help">Show a confirmation dialog for deletion of proxy profiles or
switch rules.</p>
</div>
<div class="help" id="help_refreshTab">
<p data-i18n-content="options_refreshTab_help">Refresh the current tab when changing profile via popup menu or
quick switch.</p>
</div>
<div class="help" id="help_startupProfile">
<p data-i18n-content="options_startupProfile_help">The profile to be applied on extension startup.</p>
</div>
</div>
</body>
</html>