> For the complete documentation index, see [llms.txt](https://docs-cn.hapigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-cn.hapigo.com/extention/directlink.md).

# 网页直达

网页直达是一个非常好用的功能，其主要目的是：

1. 通过几个字符就可以快速打开常用网页
2. 对于搜索引擎这类需要输入关键词的网站，可以直接传递关键词

比如，对于我们经常使用的百度，我们打开 HapiGo 主窗口后输入 bd，即可匹配百度搜索。按下 tab 后即可输入需要搜索的关键词，回车后我们就可以在浏览器里得到最后的搜索结果了。

### 创建网页直达

一般有 3 种方式可以创建网页直达：

1. 在「设置-网页直达」中创建
2. 将网页粘贴到主搜索框后，通过底部「保存至网页直达」动作创建
3. 搜索 [已开浏览器标签搜索](/extention/tabsearch.md#sou-suo-yi-kai-biao-qian) 或 [浏览器书签搜索](/extention/bmsearch.md) 时，也可以通过底部「保存至网页直达」动作创建

快速打开链接并非网页直达的全部功能，所以我们还需要了解网页直达创建面板上的各项设置的含义：

<figure><img src="/files/wXB0pI7Ve0dZYPFAZI4T" alt=""><figcaption></figcaption></figure>

* **显示名称：**&#x8FD9;里填写的内容会在 HapiGo 主列表中显示，可以理解为标题
* **关键词：**&#x8BBE;置简短好记的几个字符，用来快速匹配此网页直达
* **默认浏览器：**&#x8FD9;里可以设置按系统默认浏览器，也可以指定专门的浏览器
* **直达网址 1\~3：**&#x31;\~3 的内容都是一样的，为的是一次性打开 1\~3 个网页。链接里可以包含多个参数，每一对花括号会识别为 1 个参数，花括号里的 {内容} 会识别成参数的名称。
* **无搜索转到：**&#x6709;些网址虽然可以输入关键词，但是并不是所有时候都需要输入关键词，有时我们可能想直接打开网站的主页或其他页面。如果直接使用设置了参数的链接，可能就会打开一个无搜索页面，而不是主页。那么这个输入框就可以设置用户不搜索时，跳转的链接。
* **添加图标：**&#x5982;果没有设置，HapiGo 会自动获取网站 ico 图标

{% hint style="info" %}
如何找到某个搜索网站的直达网址：

1. 打开这个网页，输入英文关键词（比如：HapiGo）并搜索
2. 复制执行搜索后的 URL 链接，把其中 HapiGo 替换成：{query}，query 可以按你自己的意愿和场景需要任意命名。
   {% endhint %}

{% hint style="info" %}
直达网址除了日常的 http\:// 和 https\:// 协议，其他 URL Scheme 协议也支持。比如 HapiGo 的协议 [API & PopClip 插件](/adv/urlscheme.md#url-scheme)
{% endhint %}

### 设置默认搜索

为了达到更无缝的使用体验，很多用户会直接在主输入框输入需要搜索的关键词，并希望直接就可以回车搜索。这时，我们就要将搜索的网页直达设置成默认搜索。

打开设置-网页直达，找到对应的网页直达，勾选「默认搜索」即可。

<figure><img src="/files/Wf4O6WzIgyP2ic48nPCA" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-cn.hapigo.com/extention/directlink.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
