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