0b398258fa1cf23a63a0b56b7c0b2cd0fb2b03eb
[privoxy.git] / templates / edit-actions-for-url
1 ##############################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa/current/templates/edit-actions-for-url,v $
4 #
5 # Purpose     :  Template used to edit the actions associated with a
6 #                particular section in an actions file.
7
8 #
9 # Copyright   :  Written by and Copyright (C) 2001 the SourceForge
10 #                Privoxy team. http://www.privoxy.org/
11 #
12 #                Original Author: Copyright (C) 2001 Jonathan Foster
13 #                http://www.jon-foster.co.uk/
14 #
15 #                This program is free software; you can redistribute it 
16 #                and/or modify it under the terms of the GNU General
17 #                Public License as published by the Free Software
18 #                Foundation; either version 2 of the License, or (at
19 #                your option) any later version.
20 #
21 #                This program is distributed in the hope that it will
22 #                be useful, but WITHOUT ANY WARRANTY; without even the
23 #                implied warranty of MERCHANTABILITY or FITNESS FOR A
24 #                PARTICULAR PURPOSE.  See the GNU General Public
25 #                License for more details.
26 #
27 #                The GNU General Public License should be included with
28 #                this file.  If not, you can view it at
29 #                http://www.gnu.org/copyleft/gpl.html
30 #                or write to the Free Software Foundation, Inc., 59
31 #                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
32 #
33 # Revisions   :
34 #    $Log: edit-actions-for-url,v $
35 #    Revision 1.25  2002/04/26 21:37:50  jongfoster
36 #    Fixing all(?) the substitutions that were broken in the
37 #    recent actions rename.
38 #
39 #    Revision 1.24  2002/04/26 18:24:28  jongfoster
40 #    Fixing typos in help hyperlinks
41 #
42 #    Revision 1.23  2002/04/26 12:57:02  oes
43 #    Actions renamed, alphabetically sorted, comments fixed, and names linked to help
44 #
45 #    Revision 1.22  2002/04/10 13:32:53  oes
46 #    Made templates modular
47 #
48 #    Revision 1.21  2002/04/08 17:05:18  oes
49 #    Inline a style exception
50 #
51 #    Revision 1.20  2002/04/05 16:01:30  oes
52 #    Correct HTML, external Stylesheets, eye candy, some fixes
53 #
54 #    Revision 1.19  2002/03/26 22:29:56  swa
55 #    we have a new homepage!
56 #
57 #    Revision 1.18  2002/03/24 16:32:08  jongfoster
58 #    Removing logo option
59 #
60 #    Revision 1.17  2002/03/24 15:23:33  jongfoster
61 #    Name changes
62 #
63 #    Revision 1.16  2002/03/24 11:01:06  swa
64 #    name change
65 #
66 #    Revision 1.15  2002/03/23 16:18:15  swa
67 #    renamed every reference to the old name with foobar.
68 #    fixed "application foobar application" tag, fixed
69 #    "the foobar" with "foobar". left junkbuster in cvs
70 #    comments and remarks to history untouched. should
71 #    make final rename easier.
72 #
73 #    Revision 1.14  2002/03/16 15:22:19  jongfoster
74 #    Moving 'alpha' warning to the end of the page
75 #
76 #    Revision 1.13  2002/03/16 14:28:38  jongfoster
77 #    First version of modular filters support
78 #
79 #    Revision 1.12  2002/03/12 01:42:50  oes
80 #    Introduced modular filters
81 #
82 #    Revision 1.11  2002/03/08 18:19:14  jongfoster
83 #    Adding +image-blocker{pattern} option to edit interface
84 #
85 #    Revision 1.10  2002/03/03 10:29:12  swa
86 #    point users to the right feedback forms,
87 #    not necessarily the developer list.
88 #
89 #    Revision 1.9  2002/01/23 00:26:45  jongfoster
90 #    Reducing length of URLs
91 #    Where encoded and unencoded versions of a string existed, removing
92 #    the unencoded one.
93 #
94 #    Revision 1.8  2002/01/17 21:33:00  jongfoster
95 #    Replacing all references to the URL of the config interface
96 #    with @default-cgi@
97 #
98 #    Revision 1.7  2002/01/17 21:21:03  jongfoster
99 #    DOS->Unix line endings
100 #
101 #    Revision 1.6  2001/11/22 21:58:41  jongfoster
102 #    Adding action +no-cookies-keep
103 #
104 #    Revision 1.5  2001/11/13 21:12:17  jongfoster
105 #    Added support for the following actions:
106 #    +downgrade, +limit-connect, +no-compression
107 #
108 #    Revision 1.4  2001/11/13 00:58:18  jongfoster
109 #    New version of actions file editor templates
110 #
111 #
112 ##############################################################################
113 #
114 # Browser support for the JavaScript on this page:
115 #   MS Internet Explorer 5.5 - Tested,   Yes
116 #   Netscape 6.0             - Tested,   Yes
117 #   Netscape 4.75            - Tested,   NO
118 #   Opera 5.12               - Tested,   NO
119 #   MS Internet Explorer 4+  - Untested, Yes
120 #   MS IE 3.x, NS3.x         - Untested, NO
121 #   Mozilla >=0.6            - Untested, Yes
122 #
123 # All browsers should work, you just might not get the pretty DHTML effects.
124 #
125 # The effects that only work under the browsers marked "Yes" above are:
126 #  - Text edit boxes that won't have any effect are disabled.
127 #  - Table rows containing additional settings are hidden if the feature in
128 #    question is disabled.
129 #
130 # There are major kludges to get around these problems with NS4, but they
131 # screw up the HTML too much for other browsers.  If anyone wants to try,
132 # here's some descriptions of the kludges:
133 #    http://www.webreference.com/js/tips/991114.html
134 #    http://www.webreference.com/dhtml/column12/outDisplay.html
135 #
136 # If you're favorite browser isn't listed, please test and add it.
137 #
138 #
139 #############################################################################
140 #
141 # Standard support:
142 #
143 # This file currently produces valid HTML 4.01 Strict.
144 #
145 # If you change it, please save the generated page from your web browser
146 # and then upload it to http://validator.w3.org/ for checking.
147 #
148 #############################################################################
149 #
150 # Available variables include:
151 #
152 # action-name-y
153 # action-name-n
154 # action-name-x
155 #
156 # deanimate-gifs-param-first
157 # deanimate-gifs-param-last
158 # hide-from-param-block
159 # hide-from-param-custom
160 # hide-from-param
161 # hide-referer-param-forge
162 # hide-referer-param-block
163 # hide-referer-param-custom
164 # hide-referer-param
165 # hide-user-agent-param
166 # image-blocker-param-pattern
167 # image-blocker-param-blank
168 # image-blocker-param-custom
169 #
170 #
171 #############################################################################
172 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
173 <html>
174
175 <head>
176   <meta http-equiv="Content-Style-Type" content="text/css">
177   <meta http-equiv="Content-Script-Type" content="text/javascript">
178   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
179   <meta name="robots" content="noindex,nofollow">
180   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
181
182   <title>Privoxy@@my-hostname@: Edit actions</title>
183
184 <style type="text/css">
185 td.action    { font-weight: bold;
186                font-style: italic;
187                white-space: nowrap       }
188 td.subaction { font-style: italic        }
189 th           { font-weight: bold;        }
190 # This is the key to the color names below:
191 # bg=background, en="Enable", dis="Disable", noc="No Change", hdr=header
192 # 1=odd rows, 2=even rows, h=Table header
193 tr.hdr       { background-color: #999999 }
194 tr.bg1       { background-color: #eeeeee }
195 td.en1       { background-color: #eeffee }
196 td.dis1      { background-color: #ffeeee }
197 td.noc1      { background-color: #eeeeff }
198 tr.bg2       { background-color: #dddddd }
199 td.en2       { background-color: #ddffdd }
200 td.dis2      { background-color: #ffdddd }
201 td.noc2      { background-color: #ddddff }
202 th.enh       { background-color: #99ff99 }
203 th.dish      { background-color: #ff9999 }
204 th.noch      { background-color: #9999ff }
205 table.wide   { padding: 5px; }
206 td.green     { border: solid black 1px; background-color: #ddffdd; }
207 </style>
208
209 <!--
210 border-color: white;
211                border-style: solid;
212                border-left-width: 10px;
213                border-right-width: 10px;
214                border-top-width: 0px;
215                border-bottom-width: 0px  }
216 -->
217
218 <script type="text/javascript">
219 <!--
220
221 function hide_from_header_param_disable(tf)
222 {
223     if (document.getElementById) {
224         // NS6 or IE5
225         document.getElementById("hide_from_header_param").disabled = tf;
226     } else if (document.all) {
227         // IE4
228         document.myform.hide_from_header_param.disabled = tf;
229     }
230 }
231
232 function hide_referer_param_disable(tf)
233 {
234     if (document.getElementById) {
235         document.getElementById("hide_referer_param").disabled = tf;
236     } else if (document.all) {
237         document.myform.hide_referer_param.disabled = tf;
238     }
239 }
240
241 function set_image_blocker_param_disable(tf)
242 {
243     if (document.getElementById) {
244         document.getElementById("set_image_blocker_param").disabled = tf;
245     } else if (document.all) {
246         document.myform.set_image_blocker_param.disabled = tf;
247     }
248 }
249
250 function show_add_header_opts(tf)
251 {
252     if (document.getElementById) {
253         target = document.getElementById("add_header_opts");
254     } else if (document.all) {
255         target = document.add_header_opts;
256     } else {
257         return;
258     }
259     target.style.display = (tf ? "" : "none");
260 }
261
262 function show_deanimate_opts(tf)
263 {
264     if (document.getElementById) {
265         target = document.getElementById("deanimate_opts");
266     } else if (document.all) {
267         target = document.deanimate_opts;
268     } else {
269         return;
270     }
271     target.style.display = (tf ? "" : "none");
272 }
273
274 function show_hide_from_header_opts(tf)
275 {
276     if (document.getElementById) {
277         target = document.getElementById("hide_from_header_opts");
278     } else if (document.all) {
279         target = document.hide_from_header_opts;
280     } else {
281         return;
282     }
283     target.style.display = (tf ? "" : "none");
284 }
285
286 function show_hide_referer_opts(tf)
287 {
288     if (document.getElementById) {
289         target = document.getElementById("hide_referer_opts");
290     } else if (document.all) {
291         target = document.hide_referer_opts;
292     } else {
293         return;
294     }
295     target.style.display = (tf ? "" : "none");
296 }
297
298 function show_user_agent_opts(tf)
299 {
300     if (document.getElementById) {
301         target = document.getElementById("user_agent_opts");
302     } else if (document.all) {
303         target = document.user_agent_opts;
304     } else {
305         return;
306     }
307     target.style.display = (tf ? "" : "none");
308 }
309
310 function show_set_image_blocker_opts(tf)
311 {
312     if (document.getElementById) {
313         target = document.getElementById("set_image_blocker_opts");
314     } else if (document.all) {
315         target = document.set_image_blocker_opts;
316     } else {
317         return;
318     }
319     target.style.display = (tf ? "" : "none");
320 }
321
322 function show_limit_connect_opts(tf)
323 {
324     if (document.getElementById) {
325         target = document.getElementById("limit_connect_opts");
326     } else if (document.all) {
327         target = document.limit_connect_opts;
328     } else {
329         return;
330     }
331     target.style.display = (tf ? "" : "none");
332 }
333
334 function show_send_wafer_opts(tf)
335 {
336     if (document.getElementById) {
337         target = document.getElementById("send_wafer_opts");
338     } else if (document.all) {
339         target = document.send_wafer_opts;
340     } else {
341         return;
342     }
343     target.style.display = (tf ? "" : "none");
344 }
345
346 //-->
347 </script>
348 </head>
349
350 <body>
351
352 <form method="GET" action="edit-actions-submit" id="myform" name="myform">
353
354   <table cellpadding="20" cellspacing="10" border="0" width="100%">
355     <tr>
356       <td class="title">
357
358 #include mod-title
359
360       </td>
361     </tr>
362
363 <!-- @if-unstable-start -->
364 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
365     <tr>
366       <td class="warning">
367
368 #include mod-unstable-warning
369
370       </td>
371     </tr>
372 <!-- if-unstable-end@ -->
373
374     <tr>
375       <td class="box">
376         <h2>Edit Actions
377           <input type="hidden" name="f" value="@f@">
378           <input type="hidden" name="v" value="@v@">
379           <input type="hidden" name="s" value="@s@">
380         </h2>
381       </td>
382     </tr>
383
384 <tr><td class="wrapbox">
385
386   <table border="0" cellspacing="2" width="100%" class="wide">
387     <tr class="hdr" align="left">
388       <th class="enh" align="center">Enable</th>
389       <th class="dish" align="center">Disable</th>
390       <th class="noch" align="center">No Change</th>
391       <th>Action</th>
392       <th>Description</th>
393     </tr>
394     <tr class="bg1" align="left" valign="top">
395       <td class="en1" align="center" valign="middle"><input type="radio"
396         name="add_header" id="add_header_y" value="Y" @add-header-y@
397         onclick="show_add_header_opts(true)"></td>
398       <td class="dis1" align="center" valign="middle"><input type="radio"
399         name="add_header" value="N" @add-header-n@
400         onclick="show_add_header_opts(false)"></td>
401       <td class="noc1" align="center" valign="middle"><input type="radio"
402         name="add_header" value="X" @add-header-x@
403         onclick="show_add_header_opts(false)"></td>
404       <td class="action"><a href="@user-manual@@helplink@ADD-HEADER">add-header</a></td>
405       <td>Adds HTTP headers.</td>
406     </tr>
407     <tr class="bg1" align="left" valign="top" id="add_header_opts">
408       <td class="en1">&nbsp;</td>
409       <td class="dis1">&nbsp;</td>
410       <td class="noc1">&nbsp;</td>
411       <td>&nbsp;</td>
412       <td>Editing the settings for this option, or turning
413         it on if it was off, is not yet supported using this web-based
414         editor.</td>
415     </tr>
416     <tr class="bg2" align="left" valign="top">
417       <td class="en2" align="center" valign="middle"><input type="radio"
418         name="block" value="Y" @block-y@
419         ></td>
420       <td class="dis2" align="center" valign="middle"><input type="radio"
421         name="block" value="N" @block-n@
422         ></td>
423       <td class="noc2" align="center" valign="middle"><input type="radio"
424         name="block" value="X" @block-x@
425         ></td>
426       <td class="action"><a href="@user-manual@@helplink@BLOCK">block</a></td>
427       <td>Block the request</td>
428     </tr>
429     <tr class="bg1" align="left" valign="top">
430       <td class="en1" align="center" valign="middle"><input type="radio"
431         name="deanimate_gifs" id="deanimate_gifs_y" value="Y" @deanimate-gifs-y@
432         onclick="show_deanimate_opts(true)"></td>
433       <td class="dis1" align="center" valign="middle"><input type="radio"
434         name="deanimate_gifs" value="N" @deanimate-gifs-n@
435         onclick="show_deanimate_opts(false)"></td>
436       <td class="noc1" align="center" valign="middle"><input type="radio"
437         name="deanimate_gifs" value="X" @deanimate-gifs-x@
438         onclick="show_deanimate_opts(false)"></td>
439       <td class="action"><a href="@user-manual@@helplink@DEANIMATE-GIFS">deanimate-gifs</a></td>
440       <td>Replace animated GIFs with their (first/last) frame.</td>
441     </tr>
442     <tr class="bg1" align="left" valign="top" id="deanimate_opts">
443       <td class="en1">&nbsp;</td>
444       <td class="dis1">&nbsp;</td>
445       <td class="noc1">&nbsp;</td>
446       <td>&nbsp;</td>
447       <td>Use the <input type="radio" name="deanimate_gifs_mode"
448         value="first" id="deanimate_first" @deanimate-gifs-param-first@><label
449         for="deanimate_first">first frame</label>&nbsp;&nbsp; <input
450         type="radio" name="deanimate_gifs_mode" value="last" 
451         id="deanimate_last" @deanimate-gifs-param-last@><label
452         for="deanimate_last">last frame</label></td>
453     </tr>
454     <tr class="bg1" align="left" valign="top">
455       <td class="en1" align="center" valign="middle"><input type="radio"
456         name="downgrade_http_version" value="Y" @downgrade-http-version-y@></td>
457       <td class="dis1" align="center" valign="middle"><input type="radio"
458         name="downgrade_http_version" value="N" @downgrade-http-version-n@></td>
459       <td class="noc1" align="center" valign="middle"><input type="radio"
460         name="downgrade_http_version" value="X" @downgrade-http-version-x@></td>
461       <td class="action"><a href="@user-manual@@helplink@DOWNGRADE-HTTP-VERSION">downgrade-http-version</td>
462       <td>Change HTTP/1.1 requests to HTTP/1.0.  Only change if you know
463         what you're doing!</td>
464     </tr>
465     <tr class="bg2" align="left" valign="top">
466       <td class="en2" align="center" valign="middle"><input type="radio"
467         name="fast_redirects" value="Y" @fast-redirects-y@
468         ></td>
469       <td class="dis2" align="center" valign="middle"><input type="radio"
470         name="fast_redirects" value="N" @fast-redirects-n@
471         ></td>
472       <td class="noc2" align="center" valign="middle"><input type="radio"
473         name="fast_redirects" value="X" @fast-redirects-x@
474         ></td>
475       <td class="action"><a href="@user-manual@@helplink@FAST-REDIRECTS">fast-redirects</a></td>
476       <td>Bypass some click-tracking URLs.</td>
477     </tr>
478
479     <tr class="bg2" align="left" valign="top">
480       <td class="en2">&nbsp;</td>
481       <td class="dis2" align="center" valign="middle"><input type="radio"
482         name="filter_all" id="filter_all_n" value="N" @filter-all-n@ ></td>
483       <td class="noc2" align="center" valign="middle"><input type="radio"
484         name="filter_all" id="filter_all_x" value="X" @filter-all-x@ ></td>
485       <td class="action"><a href="@user-manual@@helplink@FILTER">filter</a> *</td>
486       <td>Filter the website through regular expression
487         filters.  You can use the radio buttons on this line to disable
488         all filters applied by previous rules, and/or you can enable or
489         disable the filters individually below.</td>
490     </tr>
491 @filter-params@
492     <tr class="bg1" align="left" valign="top">
493       <td class="en1" align="center" valign="middle"><input type="radio"
494         name="handle_as_image" value="Y" @handle-as-image-y@
495         ></td>
496       <td class="dis1" align="center" valign="middle"><input type="radio"
497         name="handle_as_image" value="N" @handle-as-image-n@
498         ></td>
499       <td class="noc1" align="center" valign="middle"><input type="radio"
500         name="handle_as_image" value="X" @handle-as-image-x@
501         ></td>
502       <td class="action"><a href="@user-manual@@helplink@HANDLE-AS-IMAGE">handle-as-image</a></td>
503       <td>Request is for an image (only useful in conjunction with the <i><b><a href="@user-manual@@helplink@BLOCK">block</a></b></i>
504         and <i><b><a href="@user-manual@@helplink@SET-IMAGE-BLOCKER">set-image-blocker</a></b></i> actions).</td>
505     </tr>
506     <tr class="bg1" align="left" valign="top">
507       <td class="en1" align="center" valign="middle"><input type="radio"
508         name="hide_forwarded_for_headers" value="Y" @hide-forwarded-for-headers-y@
509         ></td>
510       <td class="dis1" align="center" valign="middle"><input type="radio"
511         name="hide_forwarded_for_headers" value="N" @hide-forwarded-for-headers-n@
512         ></td>
513       <td class="noc1" align="center" valign="middle"><input type="radio"
514         name="hide_forwarded_for_headers" value="X" @hide-forwarded-for-headers-x@
515         ></td>
516       <td class="action"><a href="@user-manual@@helplink@HIDE-FORWARDED-FOR-HEADERS">hide-forwarded-for-headers</a></td>
517       <td>Block any existing X-Forwarded-for header, and do not add a new one.</td>
518     </tr>
519     <tr class="bg2" align="left" valign="top">
520       <td class="en2" align="center" valign="middle"><input type="radio"
521         name="hide_from_header" id="hide_from_header_y" value="Y" @hide-from-header-y@
522         onclick="show_hide_from_header_opts(true)"></td>
523       <td class="dis2" align="center" valign="middle"><input type="radio"
524         name="hide_from_header" value="N" @hide-from-header-n@
525         onclick="show_hide_from_header_opts(false)"></td>
526       <td class="noc2" align="center" valign="middle"><input type="radio"
527         name="hide_from_header" value="X" @hide-from-header-x@
528         onclick="show_hide_from_header_opts(false)"></td>
529       <td class="action"><a href="@user-manual@@helplink@HIDE-FROM-HEADER">hide-from-header</a></td>
530       <td>Stop old web browsers from sending the user's e-mail address with
531         every request.</td>
532     </tr>
533     <tr class="bg2" align="left" valign="top" id="hide_from_header_opts">
534       <td class="en2">&nbsp;</td>
535       <td class="dis2">&nbsp;</td>
536       <td class="noc2">&nbsp;</td>
537       <td>&nbsp;</td>
538       <td><input type="radio" name="hide_from_header_mode" value="block"
539         onclick="hide_from_header_param_disable(true);"
540         @hide-from-header-param-block@ id="hide_from_header_mode_block"><label
541         for="hide_from_header_mode_block">Remove completely</label><br>
542         <input type="radio" name="hide_from_header_mode" value="CUSTOM" 
543         onclick="hide_from_header_param_disable(false);"
544         @hide-from-header-param-custom@ id="hide_from_header_mode_set"><label
545         for="hide_from_header_mode_set">Fake e-mail address:</label><br>
546         <input type="text" name="hide_from_header_param" id="hide_from_header_param"
547         size="40" value="@hide-from-header-param@"></td>
548     </tr>
549     <tr class="bg1" align="left" valign="top">
550       <td class="en1" align="center" valign="middle"><input type="radio"
551         name="hide_referer" id="hide_referer_y" value="Y" @hide-referer-y@
552         onclick="show_hide_referer_opts(true)"></td>
553       <td class="dis1" align="center" valign="middle"><input type="radio"
554         name="hide_referer" id="hide_referer_n" value="N" @hide-referer-n@
555         onclick="show_hide_referer_opts(false)"></td>
556       <td class="noc1" align="center" valign="middle"><input type="radio"
557         name="hide_referer" id="hide_referer_x" value="X" @hide-referer-x@
558         onclick="show_hide_referer_opts(false)"
559         ></td>
560       <td class="action"><a href="@user-manual@@helplink@HIDE-REFERRER">hide-referrer</a></td>
561       <td>Helps prevent tracking by not sending the URL of the previous web
562         page.&nbsp;</td>
563     </tr>
564     <tr class="bg1" align="left" valign="top" id="hide_referer_opts">
565       <td class="en1">&nbsp;</td>
566       <td class="dis1">&nbsp;</td>
567       <td class="noc1">&nbsp;</td>
568       <td>&nbsp;</td>
569       <td><input type="radio" name="hide_referer_mode" value="block"
570         onclick="hide_referer_param_disable(true)"
571         @hide-referer-param-block@ id="hide_referer_mode_block"><label
572         for="hide_referer_mode_block">Remove completely</label> (breaks images
573         on some free web hosts).<br>
574         <input type="radio" name="hide_referer_mode" value="forge"
575         onclick="hide_referer_param_disable(true)"
576         @hide-referer-param-forge@ id="hide_referer_mode_forge"><label
577         for="hide_referer_mode_forge">Fake as the root directory of the
578         site</label> (fools checks for in-site links.)<br>
579         <input type="radio" name="hide_referer_mode" value="CUSTOM"
580         onclick="hide_referer_param_disable(false)"
581         @hide-referer-param-custom@ id="hide_referer_mode_set"><label
582         for="hide_referer_mode_set">Fake as this web address:</label><br>
583         <input type="text" name="hide_referer_param" 
584         id="hide_referer_param" size="40"
585         value="@hide-referer-param@"></td>
586     </tr>
587     <tr class="bg2" align="left" valign="top">
588       <td class="en2" align="center" valign="middle"><input type="radio"
589         name="hide_user_agent" id="hide_user_agent_y" value="Y" @hide-user-agent-y@
590         onclick="show_user_agent_opts(true)"></td>
591       <td class="dis2" align="center" valign="middle"><input type="radio"
592         name="hide_user_agent" value="N" @hide-user-agent-n@
593         onclick="show_user_agent_opts(false)"></td>
594       <td class="noc2" align="center" valign="middle"><input type="radio"
595         name="hide_user_agent" value="X" @hide-user-agent-x@
596         onclick="show_user_agent_opts(false)"></td>
597       <td class="action"><a href="@user-manual@@helplink@HIDE-USER-AGENT">hide-user-agent</a></td>
598       <td>Pretend to be using a different web browser.&nbsp; (Breaks many web
599         sites).</td>
600     </tr>
601     <tr class="bg2" align="left" valign="top" id="user_agent_opts">
602       <td class="en2">&nbsp;</td>
603       <td class="dis2">&nbsp;</td>
604       <td class="noc2">&nbsp;</td>
605       <td>&nbsp;</td>
606       <td>User Agent string to send:<br>
607         <input type="text" name="hide_user_agent_mode" size="40"
608         value="@hide-user-agent-param@"></td>
609     </tr>
610     <tr class="bg2" align="left" valign="top">
611       <td class="en2" align="center" valign="middle"><input type="radio"
612         name="kill_popups" value="Y" @kill-popups-y@
613         ></td>
614       <td class="dis2" align="center" valign="middle"><input type="radio"
615         name="kill_popups" value="N" @kill-popups-n@
616         ></td>
617       <td class="noc2" align="center" valign="middle"><input type="radio"
618         name="kill_popups" value="X" @kill-popups-x@
619         ></td>
620       <td class="action"><a href="@user-manual@@helplink@KILL-POPUPS">kill-popups</td>
621       <td>Filter the website through a built-in filter to disable many JavaScript
622         pop-up windows.</td>
623     </tr>
624     <tr class="bg1" align="left" valign="top">
625       <td class="en1" align="center" valign="middle"><input type="radio"
626         name="limit_connect" id="limit_connect_y" value="Y" @limit-connect-y@
627         onclick="show_limit_connect_opts(true)"></td>
628       <td class="dis1" align="center" valign="middle"><input type="radio"
629         name="limit_connect" value="N" @limit-connect-n@
630         onclick="show_limit_connect_opts(false)"></td>
631       <td class="noc1" align="center" valign="middle"><input type="radio"
632         name="limit_connect" value="X" @limit-connect-x@
633         onclick="show_limit_connect_opts(false)"></td>
634       <td class="action"><a href="@user-manual@@helplink@LIMIT-CONNECT">limit-connect</a></td>
635       <td>Specify which ports are allowed for SSL (HTTP CONNECT) access.
636         Note that this allows arbitrary tunnelling, so opening all
637         ports would be a security hole.</td>
638     </tr>
639     <tr class="bg1" align="left" valign="top" id="limit_connect_opts">
640       <td class="en1">&nbsp;</td>
641       <td class="dis1">&nbsp;</td>
642       <td class="noc1">&nbsp;</td>
643       <td>&nbsp;</td>
644       <td>Legal SSL ports (comma separated, ranges allowed):<br>
645         <input type="text" name="limit_connect_mode" size="40"
646         value="@limit-connect-param@"></td>
647     </tr>
648     <tr class="bg2" align="left" valign="top">
649       <td class="en2" align="center" valign="middle"><input type="radio"
650         name="prevent_compression" value="Y" @prevent-compression-y@
651         ></td>
652       <td class="dis2" align="center" valign="middle"><input type="radio"
653         name="prevent_compression" value="N" @prevent-compression-n@
654         ></td>
655       <td class="noc2" align="center" valign="middle"><input type="radio"
656         name="prevent_compression" value="X" @prevent-compression-x@
657         ></td>
658       <td class="action"><a href="@user-manual@@helplink@PREVENT-COMPRESSION">prevent-compression</a></td>
659       <td>Disables compression.  Compressed web pages are faster to
660         download, but cannot be filtered with <a href="@user-manual@@helplink@FILTER"><b>filter</b></a>
661         or <a href="@user-manual@@helplink@KILL-POPUPS"><b>kill-popups</b></a>.
662         This setting only affects the few web sites which support
663         compression.</td>
664     </tr>
665     <tr class="bg2" align="left" valign="top">
666       <td class="en2" align="center" valign="middle"><input type="radio"
667         name="prevent_reading_cookies" value="Y" @prevent-reading-cookies-y@
668         ></td>
669       <td class="dis2" align="center" valign="middle"><input type="radio"
670         name="prevent_reading_cookies" value="N" @prevent-reading-cookies-n@
671         ></td>
672       <td class="noc2" align="center" valign="middle"><input type="radio"
673         name="prevent_reading_cookies" value="X" @prevent-reading-cookies-x@
674         ></td>
675       <td class="action"><a href="@user-manual@@helplink@PREVENT-READING-COOKIES">prevent-reading-cookies</a></td>
676       <td>Prevent the website from reading cookies.</td>
677     </tr>
678     <tr class="bg1" align="left" valign="top">
679       <td class="en1" align="center" valign="middle"><input type="radio"
680         name="prevent_setting_cookies" value="Y" @prevent-setting-cookies-y@
681         ></td>
682       <td class="dis1" align="center" valign="middle"><input type="radio"
683         name="prevent_setting_cookies" value="N" @prevent-setting-cookies-n@
684         ></td>
685       <td class="noc1" align="center" valign="middle"><input type="radio"
686         name="prevent_setting_cookies" value="X" @prevent-setting-cookies-x@
687         ></td>
688       <td class="action"><a href="@user-manual@@helplink@PREVENT-SETTING-COOKIES">prevent-setting-cookies</a></td>
689       <td>Prevent the website from setting cookies.</td>
690     </tr>
691     <tr class="bg1" align="left" valign="top">
692       <td class="en1" align="center" valign="middle"><input type="radio"
693         name="send_vanilla_wafer" value="Y" @send-vanilla-wafer-y@
694         ></td>
695       <td class="dis1" align="center" valign="middle"><input type="radio"
696         name="send_vanilla_wafer" value="N" @send-vanilla-wafer-n@
697         ></td>
698       <td class="noc1" align="center" valign="middle"><input type="radio"
699         name="send_vanilla_wafer" value="X" @send-vanilla-wafer-x@
700         ></td>
701       <td class="action"><a href="@user-manual@@helplink@SEND-VANILLA-WAFER">send-vanilla-wafer</a></td>
702       <td>Adds a special wafer (standard cookie) to all your requests.</td>
703     </tr>
704     <tr class="bg2" align="left" valign="top">
705       <td class="en2" align="center" valign="middle"><input type="radio"
706         name="send_wafer" id="send_wafer_y" value="Y" @send-wafer-y@
707         onclick="show_send_wafer_opts(true)"></td>
708       <td class="dis2" align="center" valign="middle"><input type="radio"
709         name="send_wafer" id="send_wafer_n" value="N" @send-wafer-n@
710         onclick="show_send_wafer_opts(false)"></td>
711       <td class="noc2" align="center" valign="middle"><input type="radio"
712         name="send_wafer" id="send_wafer_x" value="X" @send-wafer-x@
713         onclick="show_send_wafer_opts(false)"></td>
714       <td class="action"><a href="@user-manual@@helplink@SEND-WAFER">send-wafer</a></td>
715       <td>Adds user-specified cookies.</td>
716     </tr>
717     <tr class="bg2" align="left" valign="top" id="send_wafer_opts">
718       <td class="en2">&nbsp;</td>
719       <td class="dis2">&nbsp;</td>
720       <td class="noc2">&nbsp;</td>
721       <td>&nbsp;</td>
722       <td>Editing the settings for this option, or turning
723         it on if it was off, is not yet supported using this web-based
724         editor.</td>
725     </tr>
726     <tr class="bg1" align="left" valign="top">
727       <td class="en1" align="center" valign="middle"><input type="radio"
728         name="session_cookies_only" value="Y" @session-cookies-only-y@
729         ></td>
730       <td class="dis1" align="center" valign="middle"><input type="radio"
731         name="session_cookies_only" value="N" @session-cookies-only-n@
732         ></td>
733       <td class="noc1" align="center" valign="middle"><input type="radio"
734         name="session_cookies_only" value="X" @session-cookies-only-x@
735         ></td>
736       <td class="action"><a href="@user-manual@@helplink@SESSION-COOKIES-ONLY">session-cookies-only</a></td>
737       <td>Any cookies set by the website are changed to temporary
738         ("per-session") ones, which only last until you close your web
739         browser.  This will allow you to use sites that require cookies, but
740         sites will not be able to track you across sessions.  For this to
741         be useful, you should disable 
742         <a href="@user-manual@@helplink@PREVENT-READING-COOKIES"><b>prevent-reading-cookies</b></a> and
743         <a href="@user-manual@@helplink@PREVENT-SETTING-COOKIES"><b>prevent-setting-cookies</b></a>.</td>
744     </tr>
745     <tr class="bg2" align="left" valign="top">
746       <td class="en2" align="center" valign="middle"><input type="radio"
747         name="set_image_blocker" id="set_image_blocker_y" value="Y" @set-image-blocker-y@
748         onclick="show_set_image_blocker_opts(true)"></td>
749       <td class="dis2" align="center" valign="middle"><input type="radio"
750         name="set_image_blocker" value="N" @set-image-blocker-n@
751         onclick="show_set_image_blocker_opts(false)"></td>
752       <td class="noc2" align="center" valign="middle"><input type="radio"
753         name="set_image_blocker" value="X" @set-image-blocker-x@
754         onclick="show_set_image_blocker_opts(false)"></td>
755       <td class="action"><a href="@user-manual@@helplink@SET-IMAGE-BLOCKER">set-image-blocker</a></td>
756       <td>Specifies how to block images.</td>
757     </tr>
758     <tr class="bg2" align="left" valign="top" id="set_image_blocker_opts">
759       <td class="en2">&nbsp;</td>
760       <td class="dis2">&nbsp;</td>
761       <td class="noc2">&nbsp;</td>
762       <td>&nbsp;</td>
763       <td><input type="radio" name="set_image_blocker_mode"
764         onclick="set_image_blocker_param_disable(true)"
765         value="pattern" id="set_image_blocker_mode_pattern"
766         @set-image-blocker-param-pattern@><label
767         for="set_image_blocker_mode_pattern">Send a pattern (<img
768         src="send-banner?type=p" width="12" height="12"
769         alt="pattern">)</label><br>
770         <input type="radio" name="set_image_blocker_mode" value="blank"
771         onclick="set_image_blocker_param_disable(true)"
772         id="set_image_blocker_mode_blank" @set-image-blocker-param-blank@><label 
773         for="set_image_blocker_mode_blank">Send a 1x1 transparent GIF</label><br>
774         <input type="radio" name="set_image_blocker_mode" value="CUSTOM"
775         onclick="set_image_blocker_param_disable(false)"
776         id="set_image_blocker_mode_set" @set-image-blocker-param-custom@><label
777         for="set_image_blocker_mode_set">Redirect
778         the browser to this image URL:</label><br>
779         <input type="text" name="set_image_blocker_param" id="set_image_blocker_param"
780         size="40" value="@set-image-blocker-param@"></td>
781     </tr>
782   </table>
783
784 </td></tr>
785
786     <tr>
787       <td class="green" align="center">
788         <p><input type="submit" value="Submit" name="Submit"></p>
789       </td>
790     </tr>
791
792     <tr>
793       <td class="box">
794         <h2>More Privoxy:</h2>
795         <ul>@menu@</ul>
796       </td>
797     </tr>
798
799     <tr>
800       <td class="info">
801
802 #include mod-support-and-service
803
804       </td>
805     </tr>
806
807 <!-- @if-have-help-info-start -->
808     <tr>
809       <td class="info">
810
811 #include mod-local-help
812
813       </td>
814     </tr>
815 <!-- if-have-help-info-end@ -->
816
817     <tr>
818       <td>
819         <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
820       </td>
821     </tr>
822
823   </table>
824 </form>
825
826
827 <script type="text/javascript">
828 <!--
829
830 if (document.getElementById) {
831     // alert("Netscape 6 or IE5");
832     document.getElementById("hide_from_header_param").disabled = !(document.getElementById("hide_from_header_mode_set").checked);
833     document.getElementById("hide_referer_param").disabled = !(document.getElementById("hide_referer_mode_set").checked);
834     document.getElementById("set_image_blocker_param").disabled = !(document.getElementById("set_image_blocker_mode_set").checked);
835
836     show_add_header_opts    (document.getElementById("add_header_y").checked);
837     show_deanimate_opts     (document.getElementById("deanimate_gifs_y").checked);
838     show_hide_from_header_opts(document.getElementById("hide_from_header_y").checked);
839     show_hide_referer_opts  (document.getElementById("hide_referer_y").checked);
840     show_user_agent_opts    (document.getElementById("hide_user_agent_y").checked);
841     show_set_image_blocker_opts (document.getElementById("set_image_blocker_y").checked);
842     show_limit_connect_opts (document.getElementById("limit_connect_y").checked);
843     show_wafer_opts         (document.getElementById("wafer_y").checked);
844 } else if (document.all) {
845     // alert("IE4");
846     document.myform.hide_from_header_param.disabled = !(document.myform.hide_from_header_mode_set.checked);
847     document.myform.hide_referer_param.disabled = !(document.myform.hide_referer_mode_set.checked);
848     document.myform.set_image_blocker_param.disabled = !(document.myform.set_image_blocker_mode_set.checked);
849
850     show_add_header_opts    (document.myform.add_header_y.checked);
851     show_deanimate_opts     (document.myform.deanimate_gifs_y.checked);
852     show_hide_from_header_opts (document.myform.hide_from_header_y.checked);
853     show_hide_referer_opts  (document.myform.hide_referer_y.checked);
854     show_user_agent_opts    (document.myform.hide_user_agent_y.checked);
855     show_set_image_blocker_opts (document.myform.set_image_blocker_y.checked);
856     show_limit_connect_opts (document.myform.limit_connect_y.checked);
857     show_wafer_opts         (document.myform.wafer_y.checked);
858 } else if (document.layers) {
859     // alert("Netscape 4");
860 }
861 //-->
862 </script>
863
864
865 </body>
866
867 </html>