Pregunta

Posible duplicado:
¿Cómo agregar el soporte de búsqueda de Google Chrome Omnibox para su sitio?

Tengo una pregunta sobre cómo habilitar la función "Presione Pests to Buscar" en Google Chrome para mi propio sitio web.

Ya vinculé un documento OpenSearch.xml y tengo lo siguiente incluido:

<Url type="text/html" template="http://localhost:3000/?search={searchTerms}"/>

Sin embargo, esto todavía no funciona. ¿Estoy haciendo algo mal?

¡Gracias!

¿Fue útil?

Solución

Aquí está opensearch.xml ejemplo que funciona para mí:

<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>

pienso localhost y/o puerto no estándar 3000 También podría contribuir al problema.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top