-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopupsettings.html
More file actions
51 lines (49 loc) · 1.25 KB
/
popupsettings.html
File metadata and controls
51 lines (49 loc) · 1.25 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Launched Proxy Selector</title>
<style>
body {
font-family: Arial, sans-serif;
}
.settings-container {
width: 400px;
margin: 50px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
label {
margin-right: 10px;
}
</style>
</head>
<body>
<div class="settings-container">
<h1>Launched Proxy Settings</h1>
<form id="proxyForm">
<label for="proxy">Proxy</label>
<select id="proxy" onchange="saveSettings()">
<option value="hypertabs">Hypertabs</option>
<option value="interstellar">Interstellar</option>
<option value="astroid">Astroid</option>
<option value="cloak3r">clo@k3r</option>
</select>
</form>
</div>
<script>
function saveSettings() {
const proxy = document.getElementById("proxy").value
localStorage.setItem("proxy", proxy);
}
window.onload = function() {
const savedProxy = localStorage.getItem("proxy");
if (savedProxy) {
document.getElementById("proxy").value = savedProxy;
}
};
</script>
</body>
</html>