use gitee releases in latest.html
[uweb.git] / en / searchcat / index.html
blob0d2f0451186449038ea831e2928ebdc64d6e7eb0
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
6 <link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/en/searchcat/" />
8 <link rel="stylesheet" href="../style.css#" type="text/css" />
9 <title>Search engine files</title>
10 <script>
11 function findLang(){
12 let href = location.href;
13 for(let i=href.length-1;i>0;i--){
14 if('/'==href.charAt(i) && '/'==href.charAt(i-3))
15 return i;
17 return 0;
19 function nav2(page){
20 let i = findLang();
21 location.href = location.href.substring(0,i+1)+page;
23 function nav2Lang(lang){
24 let i = findLang();
25 let href = location.href;
26 location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
28 </script>
29 </head>
30 <body>
31 <header class='header'>
32 <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
35 <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
38 <nav>
39 </nav>
40 </header>
41 <br />
43 <div class="container">
44 <h1 class="title">Search engine files
45 <br>
46 <span class="subtitle"></span>
47 </h1>
48 <ul class="tags">
50 <li><a href="../tags/search%20engine/index.html#">search engine</a> </li>
52 </ul>
53 <p>Search engine file names have &quot;.search&quot; as postfix. When they are clicked, the associated bookmark files with postfix &quot;.search.html&quot; would be appended. Ex: the associated bookmark for &quot;foo.search&quot; is &quot;foo.search.html&quot;.</p>
54 <p>Any &quot;.search&quot; file can be opened as search engine file, each line of which has one of the following formats:<br>
55 [Engine name]:[url without '%s' inside]<br>
56 [Engine name]:[url with '%s' as keyword]<br>
57 [Engine name]:POST:[post params with '%s' as keyword]:[url]<br>
58 [Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]</p>
59 <ul>
60 <li>[Extra request headers] Ex. &quot;X-Forwarded-For;8.8.8.8&quot;</li>
61 <li>when [post params] is empty, the url should have '%s' as keyword.</li>
62 </ul>
63 <p>Limitations (they are here for performance reasons):</p>
64 <ul>
65 <li>The first engine in the file must be the first type that has no '%s' in the engine url.</li>
66 <li>Internal scheme engine urls (such as i:, d:, c:) must have '%s', since '%s' format is more general (only type 2 is allowed, since POST makes no sense for internal schemes).</li>
67 </ul>
68 <h4 id="local-engines">Local engines</h4>
69 <p>c:[command line with '%s' as keyword]<br>
70 d:mimetype:[command line with '%s' as keyword]:[base url for external resources]</p>
72 </div>
73 <p>Last Modified: 8 April 2024<br>
74 add associated bookmarks<br>
75 <pre></pre>
76 </p>
78 <script id='jsgiscus'
79 src='https://giscus.app/client.js'
80 data-repo="torappinfo/uweb"
81 data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
82 data-category="Announcements"
83 data-category-id="DIC_kwDOEgNLGc4CQjsh"
84 data-mapping="title"
85 data-strict="0"
86 data-reactions-enabled="1"
87 data-emit-metadata="0"
88 data-input-position="top"
89 data-theme="light"
90 data-lang="en"
91 data-loading="lazy"
92 crossorigin="anonymous" async>
93 </script>
95 <footer class="site-footer">
96 <div class="container">
97 &copy; 2018-2025 Richard H. Cao
98 </div>
99 </footer>
100 <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
103 </body>
104 </html>