-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
80 lines (71 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
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<title>Bordercontrol Options</title>
<link rel="stylesheet" type="text/css" href="options.css">
</head>
<body>
<p>
Configure the websites that shall be decorated with a border. You can either supply the full address, or the beginning (a prefix). Alternatively, regular expressions are supported.</p>
<p>See the <a href="#examples">examples</a> for details.</p>
<table id="table">
<thead>
<tr id="table-header">
<th class="pattern-column">Address</th>
<th class="color-column">Border Color</th>
<th class="thickness-column">Border Thickness</th>
<th><span id="addRowButton">+</span></th>
<th></th>
</tr>
</thead>
<tbody>
<tr id="rowTemplate">
<td><input type="text" class="pattern-column"></td>
<td><input type="color" class="color-column"></td>
<td><input type="number" min="1" max="100" step="1" value="2" class="thickness-column"></td>
<td>
<span class="removeRowButton">✗</span>
</td>
<td>
<span class="moveRowUpButton">⇑</span>
<span class="moveRowDownButton">⇓</span>
</td>
</tr>
</tbody>
</table>
<div id="status"></div>
<button id="save">Save</button>
<h2>Examples</h2>
<a name="examples"></a>
<table>
<thead>
<tr>
<th>Pattern</th>
<th>Matches</th>
<th>Doesn't match</th>
</tr>
</thead>
<tbody>
<tr>
<td>https://twitter.com</td>
<td>Normal (encrypted, HTTPS) Twitter pages</td>
<td>Unencrypted Twitter pages, or encrypted pages from a subdomain of Twitter</td>
</tr>
<tr>
<td>https://.*\.facebook\.com</td>
<td>Any encrypted Facebook page, even from a subdomain.</td>
<td>Unencrypted Facebook pages, or pages of another domain.</td>
</tr>
<tr>
<td>http://developer.android.com/(training|guide)/.*</td>
<td>Training and guides on Android Developers</td>
<td>Reference on <code>http://developer.android.com/reference/</code></td>
</tr>
</tbody>
</table>
<p>
You can learn more about regular expressions on <a href="http://regexone.com/">http://regexone.com</a> (not affiliated with this extension).
</p>
<script src="options.js"></script>
</body>
</html>