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