This file is indexed.

/usr/share/doc/elinks-doc/html/perl-hooks.html is in elinks-doc 0.12~pre5-7ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>hooks.pl -- Perl hooks for the ELinks text WWW browser</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body style="background-color: white">


<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#configuration_file">CONFIGURATION FILE</a></li>
	<li><a href="#goto_url_hook">GOTO URL HOOK</a></li>
	<li><a href="#follow_url_hook">FOLLOW URL HOOK</a></li>
	<li><a href="#pre_format_html_hook">PRE FORMAT HTML HOOK</a></li>
	<li><a href="#proxy_for_hook">PROXY FOR HOOK</a></li>
	<li><a href="#quit_hook">QUIT HOOK</a></li>
	<li><a href="#see_also">SEE ALSO</a></li>
	<li><a href="#authors">AUTHORS</a></li>
</ul>

<hr name="index" />
</div>
<!-- INDEX END -->

<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>hooks.pl -- Perl hooks for the ELinks text WWW browser</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This file contains the Perl hooks for the ELinks text WWW browser.</p>
<p>These hooks change the browser's behavior in various ways.  They allow
shortcuts to be used in the Goto URL dialog, modifying the source of a page,
proxy handling, and other things such as displaying a fortune at exit.</p>
<p>
</p>
<hr />
<h1><a name="configuration_file">CONFIGURATION FILE</a></h1>
<p>This hooks file reads its configuration from <em>~/.elinks/config.pl</em>.
The following is an example of the configuration file:</p>
<pre>
        bork:       yep       # BORKify Google?
        collapse:   okay      # Collapse all XBEL bookmark folders on exit?
        email:                # Set to show one's own bugs with the &quot;bug&quot; prefix.
        external:   wget      # Send the current URL to this application.
        fortune:    elinks    # *fortune*, *elinks* tip, or *none* on quit?
        googlebeta: hell no   # I miss DejaNews...
        gotosearch: why not   # Anything not a URL in the Goto URL dialog...
        ipv6:       sure      # IPV4 or 6 address blocks with &quot;ip&quot; prefix?
        language:   english   # &quot;bf nl en&quot; still works, but now &quot;bf nl&quot; does too
        news:       msnbc     # Agency to use for &quot;news&quot; and &quot;n&quot; prefixes
        search:     elgoog    # Engine for (search|find|www|web|s|f|go) prefixes
        usenet:     google    # *google* or *standard* view for <a href="news://">news://</a> URLs
        weather:    cnn       # Server for &quot;weather&quot; and &quot;w&quot; prefixes</pre>
<pre>
        # news:    bbc, msnbc, cnn, fox, google, yahoo, reuters, eff, wired,
        #          slashdot, newsforge, usnews, newsci, discover, sciam
        # search:  elgoog, google, yahoo, ask jeeves, a9, altavista, msn, dmoz,
        #          dogpile, mamma, webcrawler, netscape, lycos, hotbot, excite
        # weather: weather underground, google, yahoo, cnn, accuweather,
        #          ask jeeves</pre>
<p><em>Developer's usage</em>: The function <em>loadrc()</em> takes a preference name as its
single argument and returns either an empty string if it is not specified,
<em>yes</em> for a true value (even if specified like <em>sure</em> or <em>why not</em>), <em>no</em>
for a false value (even if like <em>nah</em>, <em>off</em> or <em>0</em>), or the lowercased
preference value (like <em>cnn</em> for <code>weather: CNN</code>).</p>
<p>
</p>
<hr />
<h1><a name="goto_url_hook">GOTO URL HOOK</a></h1>
<p>This is a summary of the shortcuts defined in this file for use in the Goto URL
dialog.  They are similar to the builtin URL prefixes, but more flexible and
powerful.</p>
<p><em>Developer's usage</em>: The function <em>goto_url_hook</em> is called when the hook is
triggered, taking the target URL and current URL as its two arguments.  It
returns the final target URL.</p>
<p>These routines do a name-&gt;URL mapping - for example, the <em>goto_url_hook()</em>
described above maps a certain prefix to <a href="#google"><code>google</code></a> and then asks the
<em>search()</em> mapping routine described below to map the <a href="#google"><code>google</code></a> string to an
appropriate URL.</p>
<p>There are generally two URLs for each name.  One to go to the particular URL's
main page, and another for a search on the given site (if any string is
specified after the prefix).  A few of these prefixes will change their
behavior depending on the URL currently beung displayed in the browser.</p>
<dl>
<dt><strong><a name="bugmenot" class="item">Bugmenot:</a></strong></dt>

<dd>
<p><strong>bugmenot</strong> or <strong>bn</strong></p>
</dd>
<dt><strong><a name="web_search" class="item">Web search:</a></strong></dt>

<dl>
<dt><strong><a name="google" class="item">Google:                 <strong>g</strong> or <strong>google</strong>  (default)</a></strong></dt>

<dt><strong><a name="yahoo_y_or_yahoo" class="item">Yahoo:                  <strong>y</strong> or <strong>yahoo</strong></a></strong></dt>

<dt><strong><a name="ask_jeeves_ask_or_jeeves" class="item">Ask Jeeves:             <strong>ask</strong> or <strong>jeeves</strong></a></strong></dt>

<dt><strong><a name="amazon_a9_a9" class="item">Amazon A9:              <strong>a9</strong></a></strong></dt>

<dt><strong><a name="altavista_av_or_altavista" class="item">Altavista:              <strong>av</strong> or <strong>altavista</strong></a></strong></dt>

<dt><strong><a name="microsoft_msn_or_microsoft" class="item">Microsoft:              <strong>msn</strong> or <strong>microsoft</strong></a></strong></dt>

<dt><strong><a name="mozilla_open_directory_dmoz_odp_mozilla" class="item">Mozilla Open Directory: <strong>dmoz</strong>, <strong>odp</strong>, <strong>mozilla</strong></a></strong></dt>

<dt><strong><a name="dogpile_dp_or_dogpile" class="item">Dogpile:                <strong>dp</strong> or <strong>dogpile</strong></a></strong></dt>

<dt><strong><a name="mamma_ma_or_mamma" class="item">Mamma:                  <strong>ma</strong> or <strong>mamma</strong></a></strong></dt>

<dt><strong><a name="webcrawler_wc_or_webcrawler" class="item">Webcrawler:             <strong>wc</strong> or <strong>webcrawler</strong></a></strong></dt>

<dt><strong><a name="netscape_ns_or_netscape" class="item">Netscape:               <strong>ns</strong> or <strong>netscape</strong></a></strong></dt>

<dt><strong><a name="lycos_ly_or_lycos" class="item">Lycos:                  <strong>ly</strong> or <strong>lycos</strong></a></strong></dt>

<dt><strong><a name="hotbot_hb_or_hotbot" class="item">Hotbot:                 <strong>hb</strong> or <strong>hotbot</strong></a></strong></dt>

<dt><strong><a name="excite_ex_or_excite" class="item">Excite:                 <strong>ex</strong> or <strong>excite</strong></a></strong></dt>

<dt><strong><a name="elgoog_eg_elgoog_hcraes_dnif_bew_og" class="item">Elgoog:                 <strong>eg</strong>, <strong>elgoog</strong>, <strong>hcraes</strong>, <strong>dnif</strong>, <strong>bew</strong>, <strong>og</strong></a></strong></dt>

</dl>
<p>default engine:         <strong>search</strong>, <strong>find</strong>, <strong>www</strong>, <strong>web</strong>, <strong>s</strong>, <strong>f</strong>, <strong>go</strong></p>
<p>The <em>%search_engines</em> hash maps each engine name to two URLs, <em>home</em> and
<em>search</em>.  With <em>search</em>, the query is appended to the URL.</p>
<p>The search engines mapping is done by the <em>search()</em> function, taking the
search engine name as its first parameter and optional search string as its
second parameter.  It returns the mapped target URL.</p>
</dd>
</dl>
<dl>
<dt><strong><a name="news_agencies" class="item">News agencies:</a></strong></dt>

<dl>
<dt><strong><a name="bbc" class="item">British Broadcasting Corporation: <strong>bbc</strong>  (default)</a></strong></dt>

<dt><strong><a name="msnbc_msnbc" class="item">MSNBC:                            <strong>msnbc</strong></a></strong></dt>

<dt><strong><a name="cable_news_network_cnn" class="item">Cable News Network:               <strong>cnn</strong></a></strong></dt>

<dt><strong><a name="foxnews_fox" class="item">FOXNews:                          <strong>fox</strong></a></strong></dt>

<dt><strong><a name="google_news_gn" class="item">Google News:                      <strong>gn</strong></a></strong></dt>

<dt><strong><a name="yahoo_news_yn" class="item">Yahoo News:                       <strong>yn</strong></a></strong></dt>

<dt><strong><a name="reuters_rs_or_reuters" class="item">Reuters:                          <strong>rs</strong> or <strong>reuters</strong></a></strong></dt>

<dt><strong><a name="electronic_frontier_foundation_eff" class="item">Electronic Frontier Foundation:   <strong>eff</strong></a></strong></dt>

<dt><strong><a name="wired_wd_or_wired" class="item">Wired:                            <strong>wd</strong> or <strong>wired</strong></a></strong></dt>

<dt><strong><a name="slashdot_or_sd_or_slashdot" class="item">Slashdot:                         <strong>/.</strong> or <strong>sd</strong> or <strong>slashdot</strong></a></strong></dt>

<dt><strong><a name="newsforge_nf_or_newsforge" class="item">NewsForge:                        <strong>nf</strong> or <strong>newsforge</strong></a></strong></dt>

<dt><strong><a name="u_s_news_world_report_us_or_usnews" class="item">U.S.News &amp; World Report:          <strong>us</strong> or <strong>usnews</strong></a></strong></dt>

<dt><strong><a name="new_scientist_newsci_or_nsci" class="item">New Scientist:                    <strong>newsci</strong> or <strong>nsci</strong></a></strong></dt>

<dt><strong><a name="discover_magazine_dm" class="item">Discover Magazine:                <strong>dm</strong></a></strong></dt>

<dt><strong><a name="scientific_american_sa_or_sciam" class="item">Scientific American:              <strong>sa</strong> or <strong>sciam</strong></a></strong></dt>

</dl>
<p>default agency:                   <strong>n</strong>, <strong>news</strong></p>
<p>The <em>%news_servers</em> hash maps each engine name to two URLs, <em>home</em> and
<em>search</em>.  With <em>search</em>, the query is appended to the mapped URL.</p>
<p>The news servers mapping is done by the <em>news()</em> function, taking the search
engine name as its first parameter and optional search string as its second
parameter.  It returns the mapped target URL.</p>
</dd>
</dl>
<dl>
<dt><strong><a name="locators" class="item">Locators:</a></strong></dt>

<dl>
<dt><strong><a name="internet_movie_database_imdb_movie_or_flick" class="item">Internet Movie Database:            <strong>imdb</strong>, <strong>movie</strong>, or <strong>flick</strong></a></strong></dt>

<dt><strong><a name="usps" class="item">US zip code search:                 <strong>zip</strong> or <strong>usps</strong> (# or address)</a></strong></dt>

<dt><strong><a name="ip_address_locator_address_space_ip" class="item">IP address locator / address space: <strong>ip</strong></a></strong></dt>

<dt><strong><a name="whois" class="item">WHOIS / TLD list:                   <strong>whois</strong> (current url or specified)</a></strong></dt>

<dt><strong><a name="rfc" class="item">Request for Comments:               <strong>rfc</strong> (# or search)</a></strong></dt>

<dt><strong><a name="weather_w_or_weather" class="item">Weather:                            <strong>w</strong> or <strong>weather</strong></a></strong></dt>

<dt><strong><a name="yahoo_finance_nasd_regulation_stock_ticker_or_quote" class="item">Yahoo! Finance / NASD Regulation:   <strong>stock</strong>, <strong>ticker</strong>, or <strong>quote</strong></a></strong></dt>

<dt><strong><a name="snopes_ul_urban_or_legend" class="item">Snopes:                             <strong>ul</strong>, <strong>urban</strong>, or <strong>legend</strong></a></strong></dt>

<dt><strong><a name="torrent_search_isohunt_bt_torrent_or_bittorrent" class="item">Torrent search / ISOHunt:           <strong>bt</strong>, <strong>torrent</strong>, or <strong>bittorrent</strong></a></strong></dt>

<dt><strong><a name="archive" class="item">Wayback Machine:                    <strong>ia</strong>, <strong>ar</strong>, <strong>arc</strong>, or <strong>archive</strong> (current url or specified)</a></strong></dt>

<dt><strong><a name="freshmeat_fm_or_freshmeat" class="item">Freshmeat:                          <strong>fm</strong> or <strong>freshmeat</strong></a></strong></dt>

<dt><strong><a name="sourceforge_sf_or_sourceforge" class="item">SourceForge:                        <strong>sf</strong> or <strong>sourceforge</strong></a></strong></dt>

<dt><strong><a name="savannah_sv_or_savannah" class="item">Savannah:                           <strong>sv</strong> or <strong>savannah</strong></a></strong></dt>

<dt><strong><a name="gna_gna" class="item">Gna!:                               <strong>gna</strong></a></strong></dt>

<dt><strong><a name="berlios_bl_or_berlios" class="item">BerliOS:                            <strong>bl</strong> or <strong>berlios</strong></a></strong></dt>

<dt><strong><a name="uptime" class="item">Netcraft Uptime Survey:             <strong>whatis</strong> or <strong>uptime</strong> (current url or specified)</a></strong></dt>

<dt><strong><a name="who_s_alive_and_who_s_dead_wanted_dead_or_alive" class="item">Who's Alive and Who's Dead:         Wanted, <strong>dead</strong> or <strong>alive</strong>!</a></strong></dt>

<dt><strong><a name="google_library_project_gutenberg_book_or_read" class="item">Google Library / Project Gutenberg: <strong>book</strong> or <strong>read</strong></a></strong></dt>

<dt><strong><a name="internet_public_library_ipl" class="item">Internet Public Library:            <strong>ipl</strong></a></strong></dt>

<dt><strong><a name="vt" class="item">VIM Tips:                           <strong>vt</strong> (# or search)</a></strong></dt>

<dt><strong><a name="urban_dictionary_urbandict_or_ud_word" class="item">Urban Dictionary:                   <strong>urbandict</strong> or <strong>ud</strong> &lt;<em>word</em>&gt;</a></strong></dt>

</dl>
<p>The <em>%locators</em> hash maps each engine name to two URLs, <em>home</em> and <em>search</em>.</p>
<p><strong>!current!</strong> string in the URL is substitued for the URL of the current
document.</p>
<p><strong>!query!</strong> string in the <em>search</em> URL is substitued for the search string.  If
no <strong>!query!</strong> string is found in the URL, the query is appended to the mapped
URL.</p>
<p>The locators mapping is done by the <em>location()</em> function, taking the search
engine name as its first parameter, optional search string as its second
parameter and the current document's URL as its third parameter.  It returns
the mapped target URL.</p>
</dd>
<dt><strong><a name="google_groups" class="item">Google Groups:</a></strong></dt>

<dd>
<p><strong>deja</strong>, <strong>gg</strong>, <strong>groups</strong>, <strong>gr</strong>, <strong>nntp</strong>, <strong>usenet</strong>, <strong>nn</strong></p>
</dd>
<dt><strong><a name="mirrordot" class="item">MirrorDot:</a></strong></dt>

<dd>
<p><strong>md</strong> or <strong>mirrordot</strong> &lt;<em>URL</em>&gt;</p>
</dd>
<dt><strong><a name="coral_cache" class="item">Coral cache:</a></strong></dt>

<dd>
<p><strong>cc</strong>, <strong>coral</strong>, or <strong>nyud</strong> &lt;<em>URL</em>&gt;</p>
</dd>
<dt><strong><a name="altavista_babelfish" class="item">AltaVista Babelfish:</a></strong></dt>

<dd>
<p><strong>babelfish</strong>, <strong>babel</strong>, <strong>bf</strong>, <strong>translate</strong>, <strong>trans</strong>, or <strong>b</strong> &lt;<em>from</em>&gt; &lt;<em>to</em>&gt;</p>
<p>&quot;babelfish german english&quot; or &quot;bf de en&quot;</p>
</dd>
<dt><strong><a name="w3c_page_validators" class="item">W3C page validators:</a></strong></dt>

<dd>
<p><strong>vhtml</strong> or <strong>vcss</strong> &lt;<em>URL</em>&gt; (or current url)</p>
</dd>
<dt><strong><a name="elinks" class="item">ELinks:</a></strong></dt>

<dl>
<dt><strong><a name="home_el_or_elinks" class="item">Home:                  <strong>el</strong> or <strong>elinks</strong></a></strong></dt>

<dt><strong><a name="bug" class="item">Bugzilla:              <strong>bz</strong> or <strong>bug</strong> (# or search optional)</a></strong></dt>

<dt><strong><a name="doc" class="item">Documentation and FAQ: <strong>doc(|s|umentation)</strong> or <strong>faq</strong></a></strong></dt>

</dl>
<p>There's no place like home...</p>
</dd>
<dt><strong><a name="the_dialectizer" class="item">The Dialectizer:</a></strong></dt>

<dd>
<p><strong>dia</strong> &lt;<em>dialect</em>&gt; &lt;<em>URL</em>&gt; (or current url)</p>
<p>Dialects: <em>redneck</em>, <em>jive</em>, <em>cockney</em>, <em>fudd</em>, <em>bork</em>, <em>moron</em>, <em>piglatin</em>, or <em>hacker</em></p>
</dd>
<dt><strong><a name="sender" class="item">Sender:</a></strong></dt>

<dd>
<p><strong>send</strong></p>
<p>Send the current URL to the application specified by the configuration variable
'<em>external</em>'.  Optionally, override this by specifying the application as in
'<em>send</em> &lt;<em>application</em>&gt;'.</p>
</dd>
<dt><strong><a name="dictionary" class="item">Dictionary:</a></strong></dt>

<dd>
<p><strong>dict</strong>, <strong>d</strong>, <strong>def</strong>, or <strong>define</strong> &lt;<em>word</em>&gt;</p>
</dd>
<dt><strong><a name="google_site_search" class="item">Google site search</a></strong></dt>

<dd>
<p><strong>ss</strong> &lt;<em>domain</em>&gt; &lt;<em>string</em>&gt;</p>
<p>Use Google to search the current site or a specified site.  If a domain is not
given, use the current one.</p>
</dd>
<dt><strong><a name="anything_not_a_prefix_url_or_local_file_will_be_treated_as_a_search_using_the_search_engine_defined_by_the_search_configuration_option_if_gotosearch_is_set_to_some_variation_of_yes" class="item">Anything not a prefix, URL, or local file will be treated as a search
using the search engine defined by the 'search' configuration option if
'gotosearch' is set to some variation of 'yes'.</a></strong></dt>

</dl>
<p>
</p>
<hr />
<h1><a name="follow_url_hook">FOLLOW URL HOOK</a></h1>
<p>These hooks effect a URL before ELinks has a chance to load it.</p>
<p><em>Developer's usage</em>: The function <em>follow_url_hook</em> is called when the hook
is triggered, taking the target URL as its only argument.  It returns the final
target URL.</p>
<dl>
<dt><strong><a name="bork_bork_bork" class="item">Bork! Bork! Bork!</a></strong></dt>

<dd>
<p>Rewrites many <em>google.com</em> URLs.</p>
</dd>
<dt><strong><a name="nntp_over_google" class="item">NNTP over Google</a></strong></dt>

<dd>
<p>Translates any <em>nntp:</em> or <em>news:</em> URLs to Google Groups HTTP URLs.</p>
</dd>
</dl>
<p>
</p>
<hr />
<h1><a name="pre_format_html_hook">PRE FORMAT HTML HOOK</a></h1>
<p>When an HTML document is downloaded and is about to undergo the final
rendering, this hook is called.  This is frequently used to get rid of ads, but
also various ELinks-unfriendly HTML code and HTML snippets which are irrelevant
to ELinks but can obfuscate the rendered document.</p>
<p>Note that these hooks are applied <strong>only</strong> before the final rendering, not
before the gradual re-renderings which happen when only part of the document is
available.</p>
<p><em>Developer's usage</em>: The function <em>pre_format_html_hook</em> is called when the
hook is triggered, taking the document's URL and the HTML source as its two
arguments.  It returns the rewritten HTML code.</p>
<dl>
<dt><strong><a name="slashdot_sanitation" class="item">Slashdot Sanitation</a></strong></dt>

<dd>
<p>Kills Slashdot's Advertisements.  (This one is disabled due to weird behavior
with fragments.)</p>
</dd>
<dt><strong><a name="obvious_google_tips_annihilator" class="item">Obvious Google Tips Annihilator</a></strong></dt>

<dd>
<p>Kills some irritating Google tips.</p>
</dd>
<dt><strong><a name="sourceforge_adsmasher" class="item">SourceForge AdSmasher</a></strong></dt>

<dd>
<p>Wipes out SourceForge's Ads.</p>
</dd>
<dt><strong><a name="gmail_s_experience" class="item">Gmail's Experience</a></strong></dt>

<dd>
<p>Gmail has obviously never met ELinks...</p>
</dd>
<dt><strong><a name="source_readability_improvements" class="item">Source readability improvements</a></strong></dt>

<dd>
<p>Rewrites some evil characters to entities and vice versa.  These will be
disabled until such time as pre_format_html_hook only gets called for
content-type:text/html.</p>
</dd>
</dl>
<p>
</p>
<hr />
<h1><a name="proxy_for_hook">PROXY FOR HOOK</a></h1>
<p>The Perl hooks are asked whether to use a proxy for a given URL (or what proxy
to actually use).  You can use it if you don't want to use a proxy for certain
Intranet servers but you need to use it in order to get to the Internet, or if
you want to use some anonymizer for access to certain sites.</p>
<p><em>Developer's usage</em>: The function <em>proxy_for_hook</em> is called when the hook is
triggered, taking the target URL as its only argument.  It returns the proxy
URL, empty string to use no proxy or <em>undef</em> to use the default proxy URL.</p>
<dl>
<dt><strong><a name="no_proxy_for_local_files" class="item">No proxy for local files</a></strong></dt>

<dd>
<p>Prevents proxy usage for local files and <code>http://localhost</code>.</p>
</dd>
</dl>
<p>
</p>
<hr />
<h1><a name="quit_hook">QUIT HOOK</a></h1>
<p>The Perl hooks can also perform various actions when ELinks quits.  These can
be things like retouching the just saved &quot;information files&quot;, or doing some fun
stuff.</p>
<p><em>Developer's usage</em>: The function <em>quit_hook</em> is called when the hook is
triggered, taking no arguments nor returning anything.  ('cause, you know, what
would be the point?)</p>
<dl>
<dt><strong><a name="collapse_xbel_folders" class="item">Collapse XBEL Folders</a></strong></dt>

<dd>
<p>Collapses XBEL bookmark folders.  This is obsoleted by
<em>bookmarks.folder_state</em>.</p>
</dd>
<dt><strong><a name="words_of_wisdom" class="item">Words of Wisdom</a></strong></dt>

<dd>
<p>A few words of wisdom from ELinks the Sage.</p>
</dd>
</dl>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p><code>elinks(1)</code>, <code>perl(1)</code></p>
<p>
</p>
<hr />
<h1><a name="authors">AUTHORS</a></h1>
<p>Russ Rowan, Petr Baudis</p>

</body>

</html>