-
Notifications
You must be signed in to change notification settings - Fork 4
/
options.html
90 lines (75 loc) · 3.09 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
80
81
82
83
84
85
86
87
88
89
90
<html>
<head>
<script src="lib.js"></script>
<script src="options.js"></script>
<link rel="stylesheet" href="options.css" type="text/css" />
<title>Crackbook Settings</title>
</head>
<body>
<div id="header" class="heading">Crackbook settings</div>
<div class="subheading">Junk site list</div>
<div class="details">
Domains with paths are allowed, for example "google.com/reader".
</div>
<ul id="siteBlacklist" class="domainList">
<li id="blacklistPlaceholder">Please wait...</li>
<li><button id="add_junk_domain_button">Add domain</button></li>
</ul>
<div class="subheading">Schedule</div>
<div>
Extension enabled between
<input id="startTime" name="startTime" type="text" />
and
<input id="endTime" name="endTime" type="text" />
<span class="details">(24-hour format)</span>
</div>
<div id="weekdays">
<label><input id="weekday-0" name="weekday-0" type="checkbox" />Sun</label>
<label><input id="weekday-1" name="weekday-1" type="checkbox" />Mon</label>
<label><input id="weekday-2" name="weekday-2" type="checkbox" />Tue</label>
<label><input id="weekday-3" name="weekday-3" type="checkbox" />Wed</label>
<label><input id="weekday-4" name="weekday-4" type="checkbox" />Thu</label>
<label><input id="weekday-5" name="weekday-5" type="checkbox" />Fri</label>
<label><input id="weekday-6" name="weekday-6" type="checkbox" />Sat</label>
</div>
<div class="subheading">Parameters</div>
<div>
<div>
<label>Start blocking junk sites after <input id="dimmerThreshold" class="rightAlign" name="dimmerThreshold" type="text" /> junk hits in one day</label>
</div>
<div>
<label>Delay junk sites for <input id="dimmerDelay" class="rightAlign" name="dimmerDelay" type="text" /> seconds</label>
</div>
<div>
<label>Increase the delay by <input id="dimmerDelayIncrement" class="rightAlign" name="dimmerDelayIncrement" type="text" /> seconds after every block</label>
</div>
<div>
<label><input type="checkbox" id="reset_daily_flag" />Reset the delay every day to </label>
<input id="base_delay" name="base_delay"></input> seconds.
</div>
<div style="padding-top: 0.3em">
<label>
<label><input id="checkActiveTab" name="checkActiveTab" type="checkbox" value="1" />Block new background tabs opened from a junk page</label>
</label>
</div>
</div>
<div class="subheading" style="padding-bottom: 0.4em">Usage data</div>
<div>
<label>
<input id="upload_stats" name="upload_stats" type="checkbox" />Contribute usage data
</label>
<div class="details">
Your extension settings (including the list of junk sites) and times
of visits to the junk sites will be uploaded anonymously. Statistics
are available at <a id="crackbookLink" href="#">http://crackbook.info</a>.
</div>
</div>
<p>
<button id="save_button">SAVE</button>
</p>
<span id="saved_message" style="display: none">
Settings saved.
</span>
<p></p>
</body>
</html>