uweb/zh/searchcat/index.html

97 lines
3.8 KiB
HTML
Raw Normal View History

<!doctype html>
<html>
<head>
2020-04-29 08:37:43 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
2023-12-11 07:23:07 +00:00
2024-04-01 13:51:55 +00:00
<link rel="stylesheet" href="../style.css#" type="text/css" />
<title>分类多引擎搜索</title>
<script type="text/javascript">
function findLang(){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
return i;
}
return 0;
}
function nav2(page){
let i = findLang();
location.href = location.href.substring(0,i+1)+page;
}
function nav2Lang(lang){
let i = findLang();
let href = location.href;
location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
}
</script>
</head>
<body>
<header class='header'>
2024-04-02 05:42:43 +00:00
<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>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
<nav>
</nav>
</header>
<br />
2020-04-29 08:37:43 +00:00
<div class="container">
<h1 class="title">分类多引擎搜索
<br>
<span class="subtitle"></span>
</h1>
<ul class="tags">
2020-04-29 08:37:43 +00:00
2024-04-01 13:51:55 +00:00
<li><a href="../tags/%e6%90%9c%e7%b4%a2/index.html#">搜索</a> </li>
2020-04-29 08:37:43 +00:00
</ul>
<p><a target="_self" href="i:0bhttps://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/searchcat.tar.gz">点击本链接自动安装分类多引擎文件至&quot;bookmark&quot;目录下</a></p>
2024-04-02 11:38:45 +00:00
<p><a href="..">超微浏览器</a>中通过“设置”-&gt;“总目录”-&gt;“↑”-&gt;“Download”点击后缀为.search的下载文件超微浏览器将自动显示分类多引擎搜索。此时可按菜单键或长按底部工具条后退按钮选择“添加到桌面”方便以后访问。</p>
<p>.search文件每行格式为如下几种<br>
[搜索引擎名]:[不含%s的url]<br>
[搜索引擎名]:[含%s的url]<br>
2023-03-04 10:22:18 +00:00
[搜索引擎名]:POST:[含%s的post参数]:[url]<br>
[Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]</p>
<ul>
<li>[Extra request headers] Ex. &quot;X-Forwarded-For;8.8.8.8&quot;</li>
2024-04-02 11:38:45 +00:00
<li>when [post params] is empty, the url should have '%s' as keyword. Ex. <a href="../search/index.html#">bingUS engine w/ chatgpt</a></li>
2023-03-04 10:22:18 +00:00
</ul>
<p>.search文件首行必须为第一种类型的搜索引擎。由于其它类型的引擎数量稀少为性能考虑超微限制了首个引擎的种类。<br>
&quot;i:&quot;等超微内部scheme作开头的搜索引擎关键词部分仅支持使用&quot;%s&quot;,这纯粹是为了降低代码复杂性。</p>
<h4 id="本地引擎">本地引擎</h4>
<p>搜索引擎已经支持命令行url现在可添加离线字典查询至主页。命令行url格式为<br>
c:[含%s的命令行]<br>
d:mimetype:[含%s的命令行]:[外部资源url]<br>
查询时关键词会自动替换命令行中的%s。</p>
2020-04-29 08:37:43 +00:00
<p>笔者用来查询各式词典,发现效果非常好。百兆以内的文本文件压缩以后可以直接快速检索,定位至特定位置以后可上下滚动阅读全部文本。</p>
</div>
2024-04-02 05:42:43 +00:00
<p>Last Modified: 2 April 2024<br>
add js function in README<br>
2023-03-07 02:07:05 +00:00
<pre></pre>
</p>
2024-03-21 01:04:37 +00:00
2023-05-06 01:56:44 +00:00
<script id='jsgiscus'
src='https://giscus.app/client.js'
data-repo="torappinfo/uweb"
data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
data-category="Announcements"
data-category-id="DIC_kwDOEgNLGc4CQjsh"
2023-05-06 02:49:29 +00:00
data-mapping="title"
2023-05-06 01:56:44 +00:00
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="light"
data-lang="en"
data-loading="lazy"
2023-05-06 02:49:29 +00:00
crossorigin="anonymous" async>
2023-05-06 01:40:28 +00:00
</script>
2020-04-29 08:37:43 +00:00
</body>
2020-04-29 08:37:43 +00:00
</html>