-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
198 lines (156 loc) · 10.2 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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html style="direction: ltr;" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><!--
____________________________________________________________
| |
| DESIGN + Pat Heard { http://fullahead.org } |
| DATE + 2006.09.12 |
| COPYRIGHT + Free use if this notice is kept in place. |
|____________________________________________________________|
-->
<title>Options | Better Pop Up Blocker</title><meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="Eric Wong, http://www.optimalcycling.com" />
<meta name="keywords" content="XHTML, CSS, template, FullAhead" />
<meta name="description" content="Because you really don't like pop ups" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />
<link rel="stylesheet" type="text/css" href="css/html.css" media="screen, projection, tv " />
<link rel="stylesheet" type="text/css" href="css/layout.css" media="screen, projection, tv" />
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" /><!-- Conditional comment to apply opacity fix for IE #content background.
Invalid CSS, but can be removed without harming design --><!--[if gt IE 5]>
<link rel="stylesheet" type="text/css" href="css/ie.css" media="screen, projection, tv " />
<![endif]-->
<script src="common/port.js"></script>
<script src="common/config.js"></script>
<script src="options.js"></script>
<script type="text/javascript">
function showSavedButtons()
{
$("saveButtonTop").value = "SAVED!";
$("saveButtonBottom").value = "SAVED!";
$("saveButtonOther").value = "SAVED!";
$("saveButtonDefaults").value = "SAVED!";
window.setTimeout("showReadyButtons()", 1500);
}
function showReadyButtons()
{
$("saveButtonTop").value = "Save Options";
$("saveButtonBottom").value = "Save Options";
$("saveButtonOther").value = "Save Options";
$("saveButtonDefaults").value = "Save Options";
$("resetOptionsButton").value = "Reset Options to Defaults";
}
function resetOptionsToDefaults()
{
$("useBlacklistMode").checked = false;
$("blockWindowOpen").checked = true;
$("blockWindowPrompts").checked = true;
$("blockJSSelection").checked = true;
$("blockJSContextMenuAndClickIntercept").checked = true;
$("blockWindowMovingAndResize").checked = true;
$("blockJSPrint").checked = true;
$("blockOnUnload").checked = true;
$("blockCreateEvents").checked = false;
$("blockWindowTargets").checked = false;
$("blockUnescapeEval").checked = false;
$("blockJSTimers").checked = false;
$("closeAllPopUpWindows").checked = false;
$("reloadCurrentTabOnToggle").checked = true;
$("extendedTooltips").checked = false;
$("stripJSFromLinkLocations").checked = true;
$("showBlockedBlinks").checked = true;
$("showPageActionButton").checked = true;
}
function showHideLists()
{
var whitelistInput = document.getElementById("whitelistInput");
var blacklistInput = document.getElementById("blacklistInput");
if ($("useBlacklistMode").checked)
{
whitelistInput.style.display = "none";
blacklistInput.style.display = "block";
}
else
{
whitelistInput.style.display = "block";
blacklistInput.style.display = "none";
}
}
</script></head>
<body onload="init();">
<!-- #wrapper: centers the content and sets the width -->
<div style="width: 593px;" id="wrapper">
<!-- #content: applies the white, dropshadow background -->
<div id="content">
<!-- #header: holds site title and subtitle -->
<div id="header">
<h1><span class="big darkBrown">Better Pop Up Blocker</span></h1>
<h2><span id="highlight" class="highlight">Because you really don't like pop ups</span></h2>
</div>
<!-- #menu: topbar menu of the site. Use the helper classes .two, .three, .four and .five to set
the widths for 2, 3, 4 and 5 item menus. -->
<ul id="menu" class="four">
<li><a href="options.html" title="Options" class="here">Options<span class="big"></span></a></li>
<li><a href="http://optimalcycling.com/other-projects/better-pop-up-blocker/" title="Home"><span class="big">Home</span></a></li>
<li><a href="http://optimalcycling.com/other-projects/better-pop-up-blocker/change-log/" title="Change Log"><span class="big">Changes</span></a></li>
<li><a href="http://optimalcycling.com/other-projects/better-pop-up-blocker/#test" title="Test Pop Up Blocker"><span class="big">Test</span></a></li>
</ul>
<!-- #page: holds all page content, as well as footer -->
<div id="page">
<div id="whitelistInput" class="whitelistInput" style="display:none;">
<h1>Whitelist Web Sites</h1><p style="text-align: left;"><textarea name="whitelist" id="whitelist" cols="80" rows="20"></textarea>
</div>
<div id="blacklistInput" class="blacklistInput" style="display:none;">
<h1>Blacklist Web Sites</h1><p style="text-align: left;"><textarea name="blacklist" id="blacklist" cols="80" rows="20"></textarea>
</div>
<input name="useBlacklistMode" id="useBlacklistMode" type="checkbox" onchange="showHideLists();" />Use blacklist mode. (Pop ups allowed by default. Refresh web pages to take effect when changing this option.)
</p><p style="text-align: center;"><big><big><input onclick="save();" name="saveButtonTop" id="saveButtonTop" value="Save Options" class="button" type="button" /></big></big></p><p>
To whitelist, enter the address of the web site (one per line).
For example, <code> http//www.hulu.com </code>whitelists Hulu by searching for the above string at the beginning of a URL.</p><p>Alternatively, you can use regular expressions if you start the expression off with a caret.
For example, <code>^(http[s]?:\/\/[a-z0-9\._-]+\.|http[s]?:\/\/)google\.[a-z]+($|\/) </code>
is the regular expression to whitelist all Google web sites regardless
if they are http or https and regardless of whether its .com, .ca,
.info, etc.... (except for double dot domains like .co.uk) </p><p>All URLs and regular expressions are case insensitive.
</p><p><br />
</p><h1>Blocked Functions</h1>
<p>
Select the html/javascript functions to block below:
</p>
<div class="blockedFunctions">
<p>
<input name="blockWindowOpen" id="blockWindowOpen" type="checkbox" />Javascript window pop ups<br />
<input name="blockWindowPrompts" id="blockWindowPrompts" type="checkbox" />Prompt & alert boxes<br />
<input name="blockJSSelection" id="blockJSSelection" type="checkbox" />Text selection intercept<br />
<input name="blockJSContextMenuAndClickIntercept" id="blockJSContextMenuAndClickIntercept" type="checkbox" />Javascript context menu, cut/copy/paste, & click intercept<br />
<input name="blockWindowMovingAndResize" id="blockWindowMovingAndResize" type="checkbox" />Automatically moving & resizing windows<br />
<input name="blockJSPrint" id="blockJSPrint" type="checkbox" />Print dialogues opened by javascript<br />
<input name="blockOnUnload" id="blockOnUnload" type="checkbox" />Fire events on unload (Leaving a web page)<br />
<input name="blockCreateEvents" id="blockCreateEvents" type="checkbox" />document.createEvent (Can be used to simulate the mouse and keyboard)<br />
<input name="blockWindowTargets" id="blockWindowTargets" type="checkbox" />Window targets (Checking this forces pages to load in the same tab)<br />
<input name="blockUnescapeEval" id="blockUnescapeEval" type="checkbox" />Unescape & eval (Used to obfuscate code)<br />
<input name="blockJSTimers" id="blockJSTimers" type="checkbox" />Javascript timers
</p>
</div><p style="text-align: center;"><big><big><input onclick="save();" name="saveButtonBottom" id="saveButtonBottom" value="Save Options" class="button" type="button" /></big></big></p><br />
<h1>Other</h1>
<div class="otherOptions">
<p>
<input name="closeAllPopUpWindows" id="closeAllPopUpWindows" type="checkbox" />Try
to close all pop up windows that get through. Mainly for plugins like
Flash that are not javascript. (***WARNING: Ignores Whitelist***)<br />
<input name="reloadCurrentTabOnToggle" id="reloadCurrentTabOnToggle" type="checkbox" />Reload matching tabs when toggling extension browser button<br />
<input name="extendedTooltips" id="extendedTooltips" type="checkbox" />Show extended tooltips on links<br />
<input name="stripJSFromLinkLocations" id="stripJSFromLinkLocations" type="checkbox" />Strip javascript from link locations to make them like regular links to help make them work when they can't open pop ups<br />
<br />
<input name="showBlockedBlinks" id="showBlockedBlinks" type="checkbox" />Blink the extension icon when a pop up window is blocked<br />
<div id="div_showPageActionButton">
<input name="showPageActionButton" id="showPageActionButton" type="checkbox" />Show action button in URL bar for Better Pop Up Blocker (Will take effect on new page loads)
</div>
</p>
</div><p style="text-align: center;"><big><big><input onclick="save();" name="saveButtonOther" id="saveButtonOther" value="Save Options" class="button" type="button" /></big></big></p><h1><br /></h1><h1>Default Options</h1>To reset the options to the default values, excluding the whitelist, click the two buttons below:<p style="text-align: center;"><big><big><input onclick="this.value='Options Reset. Click Save Options to Save.'; resetOptionsToDefaults();" name="resetOptionsButton" id="resetOptionsButton" value="Reset Options to Defaults" class="button" type="button" /></big></big></p><p style="text-align: center;"><big><big><input onclick="save();" name="saveButtonDefaults" id="saveButtonDefaults" value="Save Options" class="button" type="button" /></big></big></p>
<!-- .footer: the site footer text, links and whatever else -->
<p class="footer">
Better Pop Up Blocker is Copyright (C) 2010 Eric Wong, <a href="http://optimalcycling.com">http://optimalcycling.com</a>
</p>
</div>
</div>
</div>
</body></html>