forked from gorhill/httpswitchboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
167 lines (156 loc) · 6.33 KB
/
settings.html
File metadata and controls
167 lines (156 loc) · 6.33 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>HTTP Switchboard — Settings</title>
<style>
body {
padding: 0 0 20em 0;
font: 15px httpsb,sans-serif;
max-width: 800px;
}
h2 + *, h1 + * {
margin: 0 0 0 1em;
padding: 0;
}
div > p:first-child {
margin-top: 0;
}
div > p:last-child {
margin-bottom: 0;
}
ul {
padding: 0;
list-style-type: none;
}
ul > li {
margin: 0 0 0 1em;
}
.dim {
font-weight: 100;
color: #888;
}
.whatisthis {
margin: 0 0 0 8px;
border: 0;
padding: 0 0 4px 0;
width: 16px;
height: 16px;
background: url('img/help16.png') no-repeat right bottom 1px;
cursor: pointer;
opacity: 0.5;
}
.whatisthis:hover {
opacity: 1.0;
}
.expandable {
margin: 0.5em 0 1em 1.25em;
padding: 0.5em;
display: none;
border: 1px dotted black;
background-color: #F8F8F8;
}
.expandable.expanded {
display: block;
}
.warn {
margin: 0;
padding: 5px;
background-color: #FEDAE0;
}
</style>
<link href='css/fonts.css' rel='stylesheet' type='text/css'>
</head>
<body>
<h1 data-i18n="settingsPageTitle"></h1>
<div>
<h2 data-i18n="settingsMatrixHeader"></h2>
<ul>
<li><h3 data-i18n="settingsMatrixDisplayHeader"></h3>
<ul>
<li><span data-i18n="settingsMatrixDisplayTextSizePrompt"></span>
<ul style="list-style:none">
<li><input type="radio" name="displayTextSize" value="13px"><span data-i18n="settingsMatrixDisplayTextSizeNormal"></span>
<li><input type="radio" name="displayTextSize" value="16px"><span data-i18n="settingsMatrixDisplayTextSizeLarge"></span>
</ul>
</ul>
<li><h3 data-i18n="settingsMatrixMoreSecurityHeader"></h3>
<ul>
<li>
<input id="strict-blocking" type="checkbox" value=""><span data-i18n="settingsStrictBlockingPrompt"></span> <button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsStrictBlockingInfo"></div>
<li>
<input id="auto-create-site-scope" type="checkbox" value=""><span data-i18n="settingsAutoCreateSiteScopePrompt"></span> <button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsAutoCreateSiteScopeInfo"></div>
</ul>
<li><h3 data-i18n="settingsMatrixLessSecurityHeader"></h3>
<ul>
<li>
<input id="auto-whitelist-page-domain" type="checkbox" value=""><span data-i18n="settingsAutoWhitelistPrompt"></span> <button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsAutoWhitelistHelp"></div>
</ul>
</ul>
<h2 data-i18n="settingsPresetListsOfBlockedHostsHeader"></h2>
<div>
<span id="blacklistReadonlyCount">?</span> preset blacklisted hostnames from (number of distinct entries in parentheses):
<ul id="remoteBlacklistsTemplate" style="display:none">
<li class="remoteBlacklistDetails"><input type="checkbox" value=""> <a href="" type="text/plain"></a>: <span>?</span> used out of <span>?</span>
</ul>
<ul id="remoteBlacklists" style="margin:0.5em 0 0 0;padding-left:1em;color:gray;list-style-type:none">
<li style="margin-top:0.5em"><button id="reloadRemoteBlacklists" disabled="true">Apply changes</button>
</ul>
<p style="font-size:smaller;color:gray">Obviously, more blacklist entries enabled means larger memory footprint required by the extension.</p>
</div>
<h2 data-i18n="settingsPrivacyHeader"></h2>
<ul>
<li>
<input id="delete-blacklisted-cookies" type="checkbox" value=""><span data-i18n="settingsDeleteBlockedCookiesPrompt"></span>
<button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsDeleteBlockedCookiesHelp"></div>
<li>
<input id="delete-unused-session-cookies" type="checkbox" value="">Delete non-blocked session cookies
<input id="delete-unused-session-cookies-after" type="text" value="60" size="3">minutes after
last time they have been used.
<button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsDeleteNonBlockedSessionCookiesHelp"></div>
<li>
<input id="delete-blacklisted-localstorage" type="checkbox" value=""><span data-i18n="settingsDeleteBlockedLocalStoragePrompt"></span>
<li>
<input id="clear-browser-cache" type="checkbox" value="">Clear browser cache every
<input id="clear-browser-cache-after" type="text" value="60" size="3">minutes.
<button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsClearCacheHelp"></div>
<li>
<input id="process-referer" type="checkbox" value=""><span data-i18n="settingsProcessRefererPrompt"></span>
<button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsProcessRefererHelp"></div>
</ul>
<h2 data-i18n="settingsBehindTheSceneHeader"></h2>
<ul>
<li>
<!-- <input id="process-behind-the-scene" type="checkbox" value=""> --><span data-i18n="settingsProcessBehindTheScenePrompt"></span>
<button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsProcessBehindTheSceneHelp"></div>
</ul>
<h2 data-i18n="settingsLogHeader"></h2>
<ul>
<li>Remember the last <input id="max-logged-requests" type="text" value="250" size="3"> HTTP requests per page.<button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsLogSizeHelp">
</div>
</ul>
<h2 data-i18n="settingsStartStatsInCommandlineModeHeader"></h2>
<ul>
<li>
<input id="start-commandline" type="checkbox" value=""><span data-i18n="settingsStartCommandlinePrompt"></span> <button class="whatisthis"></button>
<div class="expandable" data-i18n="settingsStartStatsInCommandlineModeHelp"></div>
</li>
</ul>
<p style="border-top:1px solid #ccc;padding-top:1em;">
<button id="bye" data-i18n="settingsDoneButton"></button>
</p>
<script src="lib/jquery-2.min.js"></script>
<script src="js/i18n.js"></script>
<script src="js/settings.js"></script>
</div>
</body>
</html>