-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
52 lines (42 loc) · 2.28 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
<html>
<head>
<link rel="shortcut icon" href="/icon_48.png" type="image/png"/>
<title>inCHROMEnter - Options Page</title>
<script type="text/javascript" src="options.js"></script>
<style>
td{
vertical-align:text-top;
}
td.description{
font-family:monospace;
}
</style>
</head>
<body>
<h3>inCHROMEnter</h3>v0.5.1 - Monroe Ekilah - <a href="https://github.com/ekilah/inCHROMEnter">GitHub Repo</a><h4>Options Page</h4><hr>
<br />
<fieldset style="width:90%;min-width:45em;margin-left:auto;margin-right:auto;">
<legend> Choose regex(s) to use for URL matching</legend>
<table>
<tr><td style="min-width:20em"><input type="checkbox" name="default[]" id="default0" >/[\d]{1,16}$/</input></td><td style="min-width:25em" class="description">Captures numbers at the end of the URL, of up to 16 digits</td></tr>
<tr><td><input type="checkbox" name="default[]" id="default1">/(.*\/[\\d]*?)([\d]{1,16})([\/]?[.\w]{0,5}$)/</input>
</td><td class="description">Caputres numbers at the end of a URL of up to 16 digits that are prepended by a forward slash (/) and optionally followed by another forward slash and/or a 4-character extension, like .html</td></tr>
</table>
<br>
<span><i>Note: You must refresh all existing tabs that you wish your new regex selections to apply to, so the extension can load.</i></span>
<br><br>
<label for="pad">Default action for padding with leading 0's:</label>
<select name="pad" id="pad">
<option value="ask">Ask when necessary</option>
<option value="yes">Pad with zeroes</option>
<option value="no">Don't pad</option>
</select>
<br><span><i>Note: This default option will be used when a URL's number is going to have fewer digits than it did before (i.e.: 100 -> 99) and keyboard shortcuts are being used (Alt+'-'). When padding is selected, the decremented URL in my example will use '099' as the new number, whereas without padding it will use '99'). This default can always be overridden when using the popup button interface via the provided checkbox.</i></span>
<br><br>
<label for="textDelta"> Change increment/decrement factor: </label><input type="number" id="textDelta" style="width:5em"; autofocus></input>
<br>
<button id="btnSave">Apply & Save</button>
<button id="btnRestore">Restore Defaults</button>
</fieldset>
</body>
</html>