cho*_*bin 6 search google-chrome opensearch
我有一个关于如何为我自己的网站启用谷歌浏览器中的"按选项卡搜索"功能的问题.
我已经链接了一个opensearch.xml文档,我有以下内容:
<Url type="text/html" template="http://localhost:3000/?search={searchTerms}"/>
然而,这仍然无法奏效.难道我做错了什么?
谢谢!
这是opensearch.xml适合我的示例:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Example.com</ShortName>
<LongName>Example.com Search</LongName>
<Description>Search through Example.com</Description>
<Query role="example" searchTerms="example search"/>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<AdultContent>false</AdultContent>
<Language>en-us</Language>
<SyndicationRight>open</SyndicationRight>
<Developer>Example.com</Developer>
<Tags>tag1,tag2</Tags>
<Image height="16" width="16" type="image/vnd.microsoft.icon">http://example.com/favicon.ico</Image>
<Url type="text/html" template="http://example.com/search.html?q={searchTerms}"/>
<Url type="application/x-suggestions+json" template="http://example.com/suggestions.html?query={searchTerms}"/>
</OpenSearchDescription>
Run Code Online (Sandbox Code Playgroud)
我认为localhost和/或非标准端口3000也可能导致问题.
| 归档时间: |
|
| 查看次数: |
5360 次 |
| 最近记录: |