-
Notifications
You must be signed in to change notification settings - Fork 7
/
options.html
executable file
·105 lines (101 loc) · 3.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto';
margin: 30px;
max-width: 600px;
color: white;
background-color: #242A41;
}
h1 {
font-size: 24px;
font-weight: 300;
margin-bottom: 20px;
}
label {
font-size: 16px;
font-weight: 400;
display: block;
margin-bottom: 5px;
}
input[type="range"] {
width: 100%;
margin-bottom: 20px;
}
p {
font-size: 14px;
font-weight: 300;
margin-top: 5px;
}
ul {
list-style: none;
padding: 0;
}
li {
background-color: #333;
padding: 10px;
border-radius: 5px;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
form {
margin-top: 20px;
}
form input {
padding: 10px;
border-radius: 5px;
border: none;
width: 70%;
}
form button {
padding: 10px;
border-radius: 5px;
border: none;
background-color: #337ab7;
color: white;
margin-left: 10px;
cursor: pointer;
}
form button:hover {
background-color: #286090;
}
button.remove {
background-color: #d9534f;
cursor: pointer;
}
button.remove {
background-color: #d9534f;
cursor: pointer;
border-radius: 8px; /* new line */
}
</style>
<title>Options</title>
</head>
<body>
<h1>Options</h1>
<label for="similarityThreshold">Similarity Threshold</label>
<input type="range" id="similarityThreshold" name="similarityThreshold" min="0" max="1" step="0.01" value="0.95">
<p>Current value: <span id="similarityThresholdValue">0.95</span></p>
<br><p>The similarity threshold determines the minimum similarity score required for a pair of URLs to be considered the same. The value ranges from 0 to 1, where 0 means that any pair of URLs is considered the same, and 1 means that only identical URLs are considered the same. The closer the value is to 1, the more similar the URLs need to be to be considered the same.</p>
<p><b>Default value is: 0.95</b></p>
<br><br><label for="checkInterval">Check Internal (minutes)</label>
<input type="range" id="checkInterval" name="checkInterval" min="1" max="5000" step="1" value="480">
<p>Current value: <span id="checkIntervalValue">480</span></p>
<br><br><p>Check Interval determines the frequency at which the extension checks for changes on the websites you visit. It is expressed in minutes, with a minimum of 1 minute and a maximum of 5000 minutes. Adjusting the slider will immediately save the new interval to your settings. Note: Lower intervals may impact performance.</b></p>
<p><b>Default value is: 480 minutes (8 hours)</b></p>
<br><br><label for="whitelist">Whitelisted Domains</label>
<ul id="whitelistDisplay"></ul>
<form id="addWhitelistForm">
<input type="text" id="newWhitelistDomain" placeholder="Enter new domain">
<button type="submit">Add to Whitelist</button>
</form>
<script src="options.js"></script>
</body>
</html>