私のウェブサイトでGoogle Chromeで検索するタブを押すタブを有効にする[複製
-
29-10-2019 - |
質問
自分のウェブサイトのGoogle Chromeの「検索するタブを検索する」機能を有効にする方法について質問があります。
私はすでに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>
おもう localhost
および/または非標準ポート 3000
問題にも貢献する可能性があります。
所属していません StackOverflow