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