-
Notifications
You must be signed in to change notification settings - Fork 2
/
options.html
executable file
·71 lines (60 loc) · 2.34 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
<!DOCTYPE html>
<html>
<head>
<title>Options</title>
<style>
body { padding: 10px;min-height: 450px; min-width: 500px; }
#status { display: inline; }
input:invalid {
border: 2px dashed red;
}
</style>
</head>
<body>
<h1>Redirect Click'n'Load</h1>
<h2>Settings</h2>
<table>
<tr>
<td><label for="targethost"> Target Hostname/IP </label></td>
<td><input id="targethost" type="text" placeholder="127.0.0.1"></td>
</tr>
<tr>
<td><label for="targetport"> Target Port</label></td>
<td><input id="targetport" type="number" placeholder="9666" min="1" max="65535" ></td>
</tr>
<tr>
<td><label for="targetproto"> Target Protocol</label></td>
<td>
<select name="proto" id="targetproto" required>
<option value="http">http</option>
<option value="https">https</option>
</select>
</td>
</tr>
<tr>
<th colspan="2">Add Authentication Header (only if Protocol is https)</th>
</tr>
<tr>
<td><label for="targetuser"> Username</label></td>
<td><input id="targetuser" type="text" placeholder="username" ></td>
</tr>
<tr>
<td><label for="targetpasswd"> Password</label></td>
<td><input id="targetpasswd" type="password" placeholder="****" min="8" max="128" ></td>
</tr>
</table>
<button id="save">Save</button><div id="status"></div>
<h2>How it works</h2>
<p>This Extension changes the Hostname/IP of requests to localhost:9666/127.0.0.1:9666.
The value you entered above will be set as new Hostname/IP.</p>
<p>With this Extension you don't need to setup an SSH Port Forward anymore.</p>
<h2>Github</h2>
<p>This Extension is on Github. Issues and Feature Requests can be made there.</p>
<a href="https://github.com/werty1st/Redirect-Click-n-Load" >https://github.com/werty1st/Redirect-Click-n-Load</a>
<h2>Cedits</h2>
<p>Starting point was an other very small Extension from rested.io but there is nothing left from their code.</p>
<p>Thanks to the Google Chrome Developer portal for the good documentation.</p>
<p>I took the JD Logo from the Google Image Search. If somebody wants to make a better one feel free to do it.</p>
<script src="options.js"></script>
</body>
</html>