1 ##############################################################################
3 # File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list,v $
5 # Purpose : Template used to edit the actions file.
8 # Copyright : Written by and Copyright (C) 2001-2009 the
9 # Privoxy team. http://www.privoxy.org/
11 # Original Author: Copyright (C) 2001 Jonathan Foster
12 # http://www.jon-foster.co.uk/
14 # This program is free software; you can redistribute it
15 # and/or modify it under the terms of the GNU General
16 # Public License as published by the Free Software
17 # Foundation; either version 2 of the License, or (at
18 # your option) any later version.
20 # This program is distributed in the hope that it will
21 # be useful, but WITHOUT ANY WARRANTY; without even the
22 # implied warranty of MERCHANTABILITY or FITNESS FOR A
23 # PARTICULAR PURPOSE. See the GNU General Public
24 # License for more details.
26 # The GNU General Public License should be included with
27 # this file. If not, you can view it at
28 # http://www.gnu.org/copyleft/gpl.html
29 # or write to the Free Software Foundation, Inc., 59
30 # Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 ##############################################################################
34 # Browser support for the CSS on this page:
35 # MS Internet Explorer 5.5 - Yes - everything works.
36 # Netscape 6.2 - Yes - everything works.
37 # Netscape 4.75 - No - CSS buttons look really bad, but they are
38 # usable. Everything else works.
39 # Opera 5.12 - Yes - everything works.
40 # MS Internet Explorer 4+ - Untested
41 # MS IE 3.x, NS3.x - Untested (Don't support CSS, so everything
42 # should work, but will look ugly).
43 # Mozilla >=0.6 - Yes - everything works.
45 # All browsers should work, you just might not get the pretty CSS buttons.
47 # If your favorite browser isn't listed/tested, please test and add it.
50 #############################################################################
54 # This file currently produces valid HTML 4.01 Strict.
56 # If you change it, please save the generated page from your web browser
57 # and then upload it to http://validator.w3.org/ for checking.
59 #############################################################################
61 # Available variables include:
67 #############################################################################
68 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
72 <meta http-equiv="Content-Style-Type" content="text/css">
73 <meta http-equiv="Content-Script-Type" content="text/javascript">
74 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
75 <meta name="robots" content="noindex,nofollow">
76 <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
77 <link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
79 <title>Privoxy: Edit actions file @actions-file@</title>
81 <style type="text/css">
84 border: solid black 1px;
88 background-color: #eeffee;
91 background-color: #ddddff;
94 background-color: #FFFFD0;
99 padding: 10px 15px 2px 15px;
117 <script type="text/javascript">
120 // Non-JS capable browsers will follow the link to a HTML "are you sure?" page
121 // JavaScript-capable browsers will call this function, which does a
122 // client-side prompt for speed. It may kick off the delete directly.
123 // It always returns false to cancel following the link.
124 function rm_p(link,pattern,curtext)
126 if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
128 link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern;
134 function e_p(link,pattern,curtext)
136 if ((newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) != null)
139 { link.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+encodeURIComponent(newtext); }
141 { link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; }
147 function a_p(link,section)
149 if (((newtext=window.prompt("Enter the new pattern:", "")) != null ) && (newtext != ""))
151 link.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+encodeURIComponent(newtext);
162 <table cellpadding="20" cellspacing="10" border="0" width="100%">
171 <!-- @if-unstable-start -->
172 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
176 #include mod-unstable-warning
180 <!-- if-unstable-end@ -->
184 <h2>What is all this?</h2>
186 If you haven't already done so, it is <b>strongly recommended</b> that you at
187 least skim <a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">the
188 chapter on actions files</a> in the <a href="@user-manual@">User Manual</a>
189 before making any changes. You will also find a comprehensive list of
190 all available actions there, as well how the settings on this page
193 <!-- @if-all-urls-present-then@ -->
195 Please note that <b>the first section has special importance</b>. It sets the default actions for
196 all URLs. The resulting actions for a particular URL may differ from these defaults if that
197 URL matches again further down, but this section is largely responsible for your browsing
198 experience. Edit manually with great care, or choose from the predefined sets of actions.
200 <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
201 <!-- @if-default-action-then@ -->
203 This is the default action file. Updates for it are available from
204 <a href="http://www.privoxy.org/">Privoxy.org</a> from time to time.
205 It is therefore <b>not recommended</b> that you add your private
206 rules here, since they will be lost if you install an update in the future.
207 Put your rules in a separate actions file, like <tt>user.action</tt> instead.
209 <!-- @else-not-default-action@@endif-default-action@ -->
215 <div class="buttons">
216 <h2>Editing Actions File @actions-file@</h2>
217 <!-- @if-all-urls-present-then@@else-not-all-urls-present@ -->
218 <p><a class="cmd" href="edit-actions-section-add?f=@f@&v=@v@&s=0">Insert new section at top</a></p>
219 <!-- @endif-all-urls-present@ -->
224 <!-- @if-all-urls-present-then@ -->
226 <td class="container"><a name="l@all-urls-s@"></a>
227 <table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
228 <tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
230 <td class="indentbuttons">
231 <a href="eafu?f=@f@&v=@v@&s=@all-urls-s@">Edit</a>
235 <tr class="actions"><td class="action">@all-urls-actions@</td></tr>
236 <tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
237 <tr class="url"><td class="indentbuttons">/ <i>(Matches all requests)</a></td></tr>
238 <tr class="adv"><td class="header">Advanced:</td></tr>
240 <td class="indentbuttons">
241 <a href="easa?f=@f@&v=@v@&s=@all-urls-s@#l@all-urls-s-next@">Insert new section below</a>
247 <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
253 <h2>More Privoxy:</h2>
254 <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
261 #include mod-support-and-service
266 <!-- @if-have-help-info-start -->
270 #include mod-local-help
274 <!-- if-have-help-info-end@ -->