在 opensearch.xml 中设置关键字条目

当我检查搜索引擎的 firefox 设置时,我可以看到一列关键字

在 opensearch.xml 中设置关键字条目

在 opensearch.xml 中,我可以定义 Tags,它不会在此处创建条目。当我添加自己的 opensearch 时,我还想设置“关键字”。你是怎么做到的?

我的 opensearch.xml 到目前为止看起来像这样并且正在工作(我可以在 Firefox 中将搜索添加到搜索栏中的绿色加号图标上):

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
    <ShortName>MyTitle</ShortName>
    <Description>My Description
    </Description>
    <InputEncoding>UTF-8</InputEncoding>
    <Tags>mytitle</Tags>
    <Image width="16" height="16" type="image/x-icon">https://myexample.com/favicon.ico</Image>
    <Url type="text/html" template="https://myexample.com">
        <Param name="query" value="{searchTerms}"/>
    </Url>
    <moz:SearchForm>https://myexample.com</moz:SearchForm>
</OpenSearchDescription>

我在 the docs 中找不到任何参考文献。

dingweiqiang 回答:在 opensearch.xml 中设置关键字条目

由于关键字条目是用户定义的快捷方式,因此您无法在 opensearch.xml 中进行设置。

本文链接:https://www.f2er.com/290049.html

大家都在问