【问题标题】:Setting keyword entry in opensearch.xml在 opensearch.xml 中设置关键字条目
【发布时间】:2021-08-25 08:09:34
【问题描述】:

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

在 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 中找不到任何参考资料。

【问题讨论】:

    标签: firefox opensearch


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2018-05-09
      • 1970-01-01
      • 1970-01-01
      • 2011-11-26
      • 1970-01-01
      • 2018-02-11
      • 2017-04-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多