forked from greatsuspender/thegreatsuspender
-
Notifications
You must be signed in to change notification settings - Fork 1
/
options.html
66 lines (54 loc) · 2.02 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
<html>
<head>
<link type="text/css" href="style.css" rel="stylesheet">
<script type="text/javascript" src="gsStorage.js"></script>
<script type="text/javascript" src="options.js"></script>
<title>The Great Suspender</title>
</head>
<body>
<div>
<h1>The Great Suspender :: Settings</h1>
<br />
<input type="checkbox" id="preview"></input>
<label for="preview">Turn on screen capturing (experimental)</label>
<br />
<input type="checkbox" id="unsuspendOnFocus"></input>
<label for="unsuspendOnFocus">Automatically unsuspend when tab gains focus</label>
<br />
<br />
<label for="whitelist">Whitelist (space separated keywords of pages to ignore)</label>
<br />
<textarea id="whitelist" rows="4" cols="50"></textarea>
<br />
<br />
<label id="timeToSuspendLbl" for="timeToSuspend">Length of inactivity before tab suspends automatically:</label>
<br />
<select id="timeToSuspend">
<option value="0">Never</option>
<option value="5">5 mins</option>
<option value="15">15 mins</option>
<option value="30">30 mins</option>
<option value="60">1 hour</option>
<option value="120">2 hours</option>
<option value="360">6 hours</option>
<option value="720">12 hours</option>
</select>
</div>
<div>
<h2>Suspended Tab History</h2>
<p>
<button id='showHistory'>Show History</button>
<button id='clearHistory'>Clear History</button>
<br />
<br />
</p>
<h2>Notes about Screen Capturing:</h2>
<p>
The screen capturing is done using Niklas von Hertzen's most excellent <a href='https://github.com/niklasvh/html2canvas'>html2canvas</a> script which attempts to render the dom onto an html5 canvas element. As far as I understand, this is still a work in progress and will not always be able to accurately represent the contents of the page in an image, sometimes resulting in missing sections or even no image at all.
</p>
<p>
Please also note that turning on screen capturing will increase the memory footprint of the suspended page (somewhat contrary to the primary goal of this extension)
</p>
</div>
</body>
</html>