-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoptions.html
48 lines (47 loc) · 1.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Options</title>
<link rel="stylesheet" href="options.css" />
<script type="module" src="options.js" ></script>
</head>
<body>
<div id="app">
<h2>Options</h2>
<p>
By default the title remains the title of the website, but you
can customize per website some regex to transform the title of
the markdown link.
</p>
<p>
If some URL (regex) pattern matches, the page title will
go through the replacing process with the corresponding match
pattern and replacement config.
</p>
<p>
For how to use the title replace feature, search
"String.prototype.replace" document for more details.
</p>
<div id="buttons-wrapper">
<span class="hidden"></span>
<button id="add-button">Add</button>
<button class="hidden">Dummy</button>
<button class="hidden">Dummy</button>
<button id="load-defaults-button">Reset</button>
<button id="save-button">Save</button>
<span id="saved-notification" class="hidden">Saved</span>
</div>
<hr />
<div id="list-of-rule"></div>
</div>
<template id="rule-template">
<div class="rule-row">
<input placeholder="URL Match Pattern" class="url" />
<input placeholder="Title Match Pattern" class="search" />
<input placeholder="Title Replacement" class="replace" />
<span class="remove-rule-button">✗</span>
</div>
</template>
</body>
</html>