4 <title>Popup for Proxy API Test</title>
5 <link href="./popup.css" type="text/css" rel="stylesheet">
8 <h1>Proxy Configuration</h1>
11 <fieldset id="system">
12 <legend>System Settings</legend>
13 <input type="radio" name="proxyType" id="proxyTypeSystem" value="system">
14 <label for="proxyTypeSystem">Use the <em>system's proxy settings</em>.</label>
16 <fieldset id="direct">
17 <legend>Direct Connection</legend>
18 <input type="radio" name="proxyType" id="proxyTypeDirect" value="direct">
19 <label for="proxyTypeDirect">Your computer is <em>directly connected</em> to the internet; no need for a proxy.</label>
21 <fieldset id="pac_script">
22 <legend>Automatic Configuration</legend>
23 <input type="radio" name="proxyType" id="proxyTypeAutoconfig" value="autoconfig">
24 <label for="proxyTypeAutoconfig">Your proxy supports <em>automatic configuration</em>.</label>
27 <label for="autoconfigURL">Autoconfiguration URL (PAC file)</label>
28 <input type="url" name="autoconfigURL" id="autoconfigURL">
29 <input type="hidden" name="autoconfigData" id="autoconfigData">
32 <fieldset id="fixed_servers">
33 <legend>Manual Proxy</legend>
34 <input type="radio" name="proxyType" id="proxyTypeManual" value="manual">
35 <label for="proxyTypeManual">Configure your proxy settings <em>manually</em>.</label>
39 <label for="proxyHostHttp">Host</label>
40 <select id="proxySchemeHttp" name="proxySchemeHttp">
41 <option selected value="http">http://</option>
42 <option value="https">https://</option>
43 <option value="socks4">socks4://</option>
44 <option value="socks5">socks5://</option>
46 <input type="text" name="proxyHostHttp" id="proxyHostHttp">
48 <label for="proxyPortHttp">Port</label>
49 <input type="text" name="proxyPortHttp" id="proxyPortHttp" class="port">
51 <input type="checkbox" name="singleProxyForEverything" id="singleProxyForEverything">
52 <label for="singleProxyForEverything">Use the same proxy server for all protocols</label>
55 <legend>HTTPS</legend>
56 <label for="proxyHostHttps">Host</label>
57 <select id="proxySchemeHttps" name="proxySchemeHttps">
58 <option selected value="http">http://</option>
59 <option value="https">https://</option>
60 <option value="socks4">socks4://</option>
61 <option value="socks5">socks5://</option>
63 <input type="text" name="proxyHostHttps" id="proxyHostHttps">
65 <label for="proxyPortHttps">Port</label>
66 <input type="text" name="proxyPortHttps" id="proxyPortHttps" class="port">
70 <label for="proxyHostFtp">Host</label>
71 <select id="proxySchemeFtp" name="proxySchemeFtp">
72 <option selected value="http">http://</option>
73 <option value="https">https://</option>
74 <option value="socks4">socks4://</option>
75 <option value="socks5">socks5://</option>
77 <input type="text" name="proxyHostFtp" id="proxyHostFtp">
79 <label for="proxyPortFtp">Port</label>
80 <input type="text" name="proxyPortFtp" id="proxyPortFtp" class="port">
83 <legend>Fallback</legend>
84 <label for="proxyHostFallback">Host</label>
85 <select id="proxySchemeFallback" name="proxySchemeFallback">
86 <option selected value="http">http://</option>
87 <option value="https">https://</option>
88 <option value="socks4">socks4://</option>
89 <option value="socks5">socks5://</option>
91 <input type="text" name="proxyHostFallback" id="proxyHostFallback">
93 <label for="proxyPortFallback">Port</label>
94 <input type="text" name="proxyPortFallback" id="proxyPortFallback" class="port">
97 <label for="bypassList">Bypass proxy for these hosts:</label>
98 <textarea id="bypassList" name="bypassList" placeholder="<local>,192.168.1.1/16, .example.com"></textarea>
102 <input type="submit" value="Save proxy settings">
103 <button value="incognito">Configure incognito window settings.</button>
106 <script src="./proxy_form_controller.js"></script>
107 <script src="./popup.js"></script>