-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
54 lines (50 loc) · 1.93 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
<!DOCTYPE html>
<html>
<head>
<title>Differential Speed Controller: Options</title>
<link rel="stylesheet" href="options.css" />
<script src="options.js"></script>
</head>
<body>
<header>
<h1>Differential Speed Controller</h1>
</header>
<section>
<h3>Settings</h3>
<div class="row">
<label for="enabled">Enable</label>
<input id="enabled" type="checkbox" />
</div>
<div class="row">
<label for="defaultSpeed">Default Speed (applied to all sites without a rule defined below): </label>
<input id="defaultSpeed" type="number" min="0" step="0.25" />
</div>
<div class="row">
<p>
You can manually manage your lists for each type of rule below.<br />
One rule per line, url and speed should be separated by a "|" (e.g. youtube.com|2). Entires without a speed will be given the default speed.<br />
You can paste urls directly into each field below, the extension will process the urls into the appropriate format.<br />
Note: Playlist rules only guaranteed work with YouTube playlists. Will reject entries without the '&list=' in the url.
</p>
</div>
<div class="row">
<label for="domainRules">Domain-Specific Speed Rules:
</label>
<textarea id="domainRules" rows="10" cols="50"></textarea>
</div>
<div class="row">
<label for="urlRules">URL-Specific Speed Rules:
</label>
<textarea id="urlRules" rows="10" cols="50"></textarea>
</div>
<div class="row">
<label for="playlistRules">Playlist-Specific Speed Rules:
</label>
<textarea id="playlistRules" rows="10" cols="50"></textarea>
</div>
</section>
<p>If duplicates are found, the <em>last</em> instance will be kept. Blank lines will be trimmed.</p>
<button id="save">Save</button>
<div id="status">Options saved</div>
</body>
</html>