-
Notifications
You must be signed in to change notification settings - Fork 14
/
options.html
172 lines (169 loc) · 7.37 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title class="i18n-text">config title</title>
<link rel="icon" href="icon.svg"/>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<header>
<img id="logo" width="96" src="icon.svg"
alt="Referer Modifier logo: cat ears peeking over an edge"
role="presentation"/>
<h1 class="i18n-text">config title</h1>
</header>
<section>
<form id="ref_conf">
<table>
<thead>
<tr id="header">
<th title="target domain description"
id="target-domain-header"
scope="col" class="i18n-text">
target domain
</th>
<th title="origin domain description"
id="origin-domain-header"
scope="col" class="i18n-text">
origin domain
</th>
<th title="action column description"
id="action-column-header"
scope="col" class="i18n-text">
action column
</th>
<th title="replacement referer description"
id="replacement-referer-header"
scope="col" class="i18n-text">
replacement referer
</th>
</tr>
</thead>
<tbody id="hosts">
<tr>
<td class="rule_label i18n-text" title="any rule description" colspan="2">any rule</td>
<td>
<select class="action browser-style" aria-labelledby="action-column-header" id="any_action">
<option class="i18n-text" value="keep" title="keep action description">keep action</option>
<option class="i18n-text" value="prune" title="prune action description">prune action</option>
<option class="i18n-text" value="target" title="target action description">target action</option>
<option class="i18n-text" value="remove" title="remove action description">remove action</option>
<option class="i18n-text" value="replace" title="replace action description">replace action</option>
</select>
</td>
<td>
<div class="browser-style">
<input id="any_referer" class="referer i18n-text" type="text"
title="replacement referer description"
aria-labelledby="replacement-referer-header"
value=""/>
</div>
</td>
</tr>
<tr>
<td class="rule_label i18n-text" title="same rule description" colspan="2">same rule</td>
<td>
<select class="action browser-style" aria-labelledby="action-column-header" id="same_action">
<option class="i18n-text" value="keep" title="keep action description">keep action</option>
<option class="i18n-text" value="prune" title="prune action description">prune action</option>
<option class="i18n-text" value="target" title="target action description">target action</option>
<option class="i18n-text" value="remove" title="remove action description">remove action</option>
<option class="i18n-text" value="replace" title="replace action description">replace action</option>
</select>
</td>
<td>
<div class="browser-style">
<input id="same_referer" class="referer i18n-text" type="text"
title="replacement referer description"
aria-labelledby="replacement-referer-header"
value=""/>
</div>
</td>
</tr>
</tbody>
</table>
<div class="control">
<button class="browser-style i18n-text" type="button" id="add_row">add rule</button>
<button class="browser-style default i18n-text" type="button" id="safe_conf">save config</button>
</div>
</form>
</section>
<section class="documentation">
<div class="i18n-text">config doc</div>
<details>
<summary class="i18n-text">regexp doc summary</summary>
<div class="i18n-text">regexp doc</div>
</details>
</section>
<section>
<h3 class="i18n-text">config backup title</h3>
<p>
<div class="control">
<button class="browser-style i18n-text" type="button" id="export">config export button</button>
</div>
</p>
<p>
<div class="browser-style">
<label for="import_file" class="i18n-text">select import file</label>
<input type="file" id="import_file" name="import_file"
accept="application/json"/>
</div>
<div id="import_warn" hidden>
<strong class="i18n-text">config import warning</strong>
<div>
<button class="browser-style i18n-text" id="import_button" type="button" disabled>config import button</button>
</div>
</div>
</p>
</section>
<template id="ref_row">
<tr class="ref_entry">
<td>
<div class="browser-style">
<input class="hostname i18n-text" type="text"
placeholder="cdn.example.com"
title="target domain description"
aria-labelledby="target-domain-header"
value=""/>
</div>
</td>
<td>
<div class="browser-style">
<input class="origin-domain i18n-text" type="text"
placeholder="cdn.example.com"
title="origin domain description"
aria-labelledby="origin-domain-header"
value=""/>
</div>
</td>
<td>
<select class="action browser-style"
aria-labelledby="action-column-header">
<option class="i18n-text" value="keep" title="keep action description">keep action</option>
<option class="i18n-text" value="prune" title="prune action description">prune action</option>
<option class="i18n-text" value="target" title="target action description">target action</option>
<option class="i18n-text" value="remove" title="remove action description">remove action</option>
<option class="i18n-text" value="replace" title="replace action description">replace action</option>
</select>
</td>
<td>
<div class="browser-style">
<input class="referer i18n-text" type="text"
placeholder="https://www.example.com/"
title="replacement referer description"
aria-labelledby="replacement-referer-header"
value=""/>
</div>
</td>
<td class="button_container">
<button class="delete_row browser-style i18n-text" type="button" title="delete rule description">delete rule</button>
<button class="up_row browser-style i18n-text" type="button" title="rule up description">rule up</button>
<button class="down_row browser-style i18n-text" type="button" title="rule down description">rule down</button>
</td>
</tr>
</template>
<script src="i18n.js"></script>
<script src="options.js"></script>
</body>
</html>