-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
executable file
·62 lines (56 loc) · 2.42 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
<!DOCTYPE html>
<html>
<head>
<title>Linkify OTRS Issues: Options</title>
<style type="text/css">
html{height: 100%;}
body {
margin: 20px;
font: 10px "Lucida Grande", verdana, sans-serif;
font-size:12px;
}
label {
display:block;
margin-bottom:5px;
}
textarea {
width:500px;
height: 100px;
}
</style>
</head>
<body>
<div id="install" style="display:none;" >
<h1>First Time Installation</h1>
Before this extension can be used, you must change the OTRS path option below.<br /><br />
Some websites may not behave as expected with this extension, and a whitelist <br />
is provided which will allow you to conditionally enable this extension on a <br />
per-site basis, if needed.<br /><br /><br />
</div>
<h1>Linkify OTRS Issues: Options</h1>
<form id="options_form">
<label for="otrs_path"> OTRS Browse Path: </label>
<input type="text" size="70" id="otrs_path" /><br /><br />
<!-- <label for="blacklist"> <strong>Blacklist:</strong> Disable extension for the following domains (separate by commas): </label>
<textarea id="blacklist"></textarea><br /><br /> -->
<label for="whitelist"> <strong>Whitelist:</strong> Enable extension for the following domains only (separate by commas): </label>
<textarea id="whitelist"></textarea><br />
<small><strong>Note:</strong> You may enter partially domain names and use regular expressions.<br />If the whitelist is empty, the extension is applied to all websites. If the whitelist contains data, the<br/> extension is applied only to addresses included in the whitelist.</small>
<br /><br /><br />
<strong><em>Advanced Settings</em></strong>
<label for="regex"> Regular Expression to Match Against: </label>
<input type="text" size="40" id="regex" /><br /><small>default: \b[\d]{16}\b </br>= a numeric string with exactly 16 digits. I.e. '2016040773000073'.</small>
</form>
<br/><br/>
<hr/>
<h2>Source</h2>
<p>Linkify OTRS was shamelessly copied and adapted from the extension <a href="https://chrome.google.com/webstore/detail/linkify-jira-issues/ekbbnaokafbanjgmcbllligemhiclbcb?hl=de" target=_blank>Linkify JIRA issues</a> by Matthew Sullivan.</p>
<p>Changes:</p>
<ul>
<li>Switched from blacklist filtering to whitelist filtering</li>
<li>Added default pattern for OTRS ticket numbers</li>
<li>Added support for links that don't end with slash</li>
</ul>
<script src="js/options.js"></script>
</body>
</html>