Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 98 lines (69 sloc) 5.02 KB
<title>Check My Links: Options</title>
<link rel="stylesheet" type="text/css" href="css/options_style.css" />
<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></span> will prevent the following links from being checked: <span></span> or <span></span></p>
<label for="blacklistEntries">Exclude links from these domains:</label><br/>
<textarea name="blacklistEntries" id="blacklistEntries" rows="2" cols="20"></textarea>
<label for="requestType">Method of Request: </label>
<select id="requestType">
<option value="GET">GET</option>
<option value="HEAD">HEAD</option>
<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>
<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>
<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 (&lt;a href=&quot;page2.html#elementID&quot;&gt;Link&lt;/a&gt;) </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 '#' (&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;") </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 (&lt;a href=&quot;&quot;&gt;Empty href&lt;/a&gt;) </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 (&lt;a&gt;No href&lt;/a&gt;) </label>
<p>When enabled, if there is an anchor tag without an 'href' attribute you will be warned.</p>
<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 id="msgCache" style="visibility: hidden;">Cache cleared!</div>
<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 />
<div id="support">
<p>Support this extension by contributing towards its upkeep, every little donation helps: </p>
<form action="" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="BDPC3R58JU9F6">
<input type="image" src="" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="" width="1" height="1">
<div class="buttons">
<button id="save">Save my preferences</button>
<div id="msg" style="visibility: hidden;">Preferences Saved!</div>
<div class="footer">
<a href="">By Paul Livingstone</a> - <a href="">Wiki</a> - <a href="">Report an issue</a> - <a href="">Fork me on Github</a>- <a href="tests/index.html">QUnit Tests</a>
<script src="db.js"></script>
<script src="options.js"></script>