-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathoptions.html
executable file
·79 lines (58 loc) · 4.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
<html>
<head>
<title>Check My Links: Options</title>
<link rel="stylesheet" type="text/css" href="css/options_style.css" />
</head>
<body>
<div id="content">
<h1 id="logo">Check My Links: Options</h1>
<p>To prevent this extension from checking a link, please enter all or part of the URL in the blacklist below. Each URL must be entered on a new line.</p>
<p style="line-height: 26px">For example: <span>www.mydomain.com</span> will prevent the following links from being checked: <span>www.mydomain.com/page1.html</span> or <span>www.mydomain.com/page2.html</span></p>
<label for="blacklistEntries">Exclude links from these domains:</label><br/>
<textarea name="blacklistEntries" id="blacklistEntries" rows="2" cols="20"></textarea>
<hr/>
<label for="requestType">Method of Request: </label>
<select id="requestType">
<option value="GET">GET</option>
<option value="HEAD">HEAD</option>
</select>
<p>HEAD is quicker, but sometimes doesn't reflect the true HTTP status of a page, use GET if you're getting weird results. GET is required to be able to parse the document for an element corresponding to what is after the hashtag by ID.</p>
<hr/>
<label for="autoCheck">AutoCheck: </label> <input type="checkbox" name="autoCheck" id="autoCheck" value="1">
<p>When enabled, if the url of the current tab changes and the page is loaded, it will automatically be checked. Valid link caching is recommended when this is enabled.</p>
<h3>Warnings</h3>
<p>Warnings are shown in the console.log (F12->Console tab). Also, they are highlighted yellow.</p>
<input type="checkbox" name="parseDOM" id="parseDOM" value="1"><label for="parseDOM">Parse DOM after hashtag (<a href="page2.html#elementID">Link</a>) </label>
<p>Hashtags can link to elements by id within the DOM. Enabling will add add the check to make sure an element exists by id to correspond to the hashtag. When enabled, if the page resolves but the corresponding element is not found, the element will be marked as a warning. <strong>Request Type: GET is required</strong></p>
<input type="checkbox" name="trailingHash" id="trailingHash" value="1"><label for="trailingHash">Trailing '#' (<a href="#">Link</a>") </label>
<p>When enabled, if the link url endswith '#' you will be warned.</p>
<input type="checkbox" name="emptyLink" id="emptyLink" value="1"><label for="emptyLink">Empty Link (<a href="">Empty href</a>) </label>
<p>When enabled, if the link url is empty 'href=""' you will be warned.</p>
<input type="checkbox" name="noHrefAttr" id="noHrefAttr" value="1"><label for="noHrefAttr">Anchor tag without href (<a>No href</a>) </label>
<p>When enabled, if there is an anchor tag without an 'href' attribute you will be warned.</p>
<hr/>
<strong>Valid Link Caching</strong>
<p>If you don't want to constantly re-check good (green, HTTP 200) links, enable the option below to force the extension to only check new links or links which were previously broken (red, HTTP 404 etc). Enabling 'Valid Link Caching' vastly reduces the time it will take to repeatedly check a page.</p>
<input type="checkbox" name="cache" id="cache" value="1"><label for="cache">Cache Valid Links: </label>
<div class="buttons">
<button id="clearCache">Clear Cache</button>
</div>
<div id="msgCache" style="visibility: hidden;">Cache cleared!</div>
<hr/>
<strong>Nofollow Links</strong>
<p>By default, Check My Links will not check links with a link rel attribute of 'nofollow', you should apply this attribute to links you don't want the extension to trigger (such as Log Out, Sign Out links etc).</p>
<input type="checkbox" name="noFollow" id="noFollow" value="1"><strong>Check Links with rel="nofollow"<strong> <br />
<hr/>
<div id="support">
<div class="buttons">
<button id="save">Save my preferences</button>
</div>
<div id="msg" style="visibility: hidden;">Preferences Saved!</div>
</div>
<div class="footer">
<a href="https://github.com/PageModifiedOfficial/Check-My-Links/wiki">Wiki</a> - <a href="https://github.com/PageModifiedOfficial/Check-My-Links/issues">Report an issue</a> - <a href="https://github.com/PageModifiedOfficial/Check-My-Links">Fork me on Github</a>- <a href="tests/index.html">QUnit Tests</a>
</div>
<script src="db.js"></script>
<script src="options.js"></script>
</body>
</html>