-
Notifications
You must be signed in to change notification settings - Fork 0
Collapse file tree
Files
Search this repository(forward slash) forward slash/
/
Copy pathoptions.html
More file actions
More file actions
Latest commit
259 lines (214 loc) · 6.3 KB
/
Copy pathoptions.html
File metadata and controls
259 lines (214 loc) · 6.3 KB
You must be signed in to make or propose changes
More edit options
Edit and raw actions
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1"
>
<title>SERP Domain Index v2</title>
<link rel="stylesheet" href="options.css">
</head>
<body>
<main>
<h1>SERP Domain Index v2</h1>
<p class="introduction">
This extension hides search results by matching complete
hostname labels against an exact, disk-backed index.
Imports are sequential and resumable.
</p>
<section aria-labelledby="status-heading">
<h2 id="status-heading">Index status</h2>
<dl class="status-grid">
<dt>Status</dt>
<dd id="index-status">Loading...</dd>
<dt>Exact labels</dt>
<dd id="label-count">-</dd>
<dt>Active generation</dt>
<dd id="active-generation">-</dd>
<dt>Previous generation</dt>
<dd id="previous-generation">-</dd>
<dt>Imported</dt>
<dd id="imported-at">-</dd>
<dt>Source files</dt>
<dd id="source-count">17</dd>
<dt>Public Suffix List</dt>
<dd id="psl-status">Loading...</dd>
</dl>
</section>
<section aria-labelledby="filtering-heading">
<h2 id="filtering-heading">Filtering</h2>
<label class="checkbox-row">
<input id="enabled" type="checkbox">
<span>Enable search-result filtering</span>
</label>
<p>
Matching is case-insensitive and exact by complete
hostname label. A rule for <code>a</code> matches
<code>a.example.com</code>, but not
<code>data.example.com</code>.
</p>
<p>
Labels belonging to a public suffix, such as
<code>co.uk</code>, are excluded automatically.
</p>
<label for="protected-labels">
Protected infrastructure labels
</label>
<textarea
id="protected-labels"
rows="6"
spellcheck="false"
aria-describedby="protected-labels-help"
></textarea>
<p
id="protected-labels-help"
class="explanation"
>
Enter one label per line. Protected labels are never
used to hide results, even when they exist in the
imported index. Recommended defaults include
<code>www</code>, <code>www1</code>,
<code>www2</code>, <code>www3</code>, and
<code>m</code>.
</p>
<button
id="save-settings"
type="button"
class="secondary"
>
Save filtering settings
</button>
</section>
<section aria-labelledby="import-heading">
<h2 id="import-heading">Import</h2>
<p>
Each source is downloaded and imported separately.
If the operation is interrupted, completed sources
remain stored and the current source can be restarted.
</p>
<div class="actions">
<button id="start-import" type="button">
Start new full import
</button>
<button
id="resume-import"
type="button"
class="secondary"
disabled
>
Resume import
</button>
<button
id="pause-import"
type="button"
class="secondary"
disabled
>
Pause import
</button>
<button
id="abandon-import"
type="button"
class="secondary"
disabled
>
Discard unfinished build
</button>
</div>
<progress
id="progress"
max="17"
<section aria-labelledby="maintenance-heading">
<h2 id="maintenance-heading">Database maintenance</h2>
<p>
The active generation is used for filtering. One
previous completed generation may be retained as a
fallback. Abandoned and older generations can be
cleaned explicitly.
</p>
<div class="actions">
<button
id="clean-unused"
type="button"
class="secondary"
>
Clean unused databases
</button>
<button
id="delete-previous"
type="button"
class="secondary"
disabled
>
Delete previous generation
</button>
<button
id="clear-data"
type="button"
class="danger"
>
Delete all index data
</button>
</div>
<output
id="maintenance-status"
aria-live="polite"
></output>
</section>
<section aria-labelledby="sources-heading">
<h2 id="sources-heading">Source format</h2>
<p>
The compact format is one hostname label per line:
</p>
<pre><code>a
google
wikipedia
0-173
123_reg</code></pre>
<p>
Existing rules such as
<code>*://*.0-173/*</code> are also accepted and
normalized to <code>0-173</code>. The full import uses
<code>1.txt</code> through <code>9.txt</code>,
<code>a.txt</code> through <code>g.txt</code>, and
<code>cdn</code>.
</p>
</section>
<noscript>
JavaScript must be enabled to manage this extension.
</noscript>
</main>
<script src="options.js"></script>
</body>
</html>