0
0
0472011-01-23 03:26:13
Google Chrome
047, 2011-01-23 03:26:13

Search by Tab in Google Chrome, or how to optimize the site for this?

Gentlemen, good night everyone.
Surely everyone knows such a function in the browser as taboo search - when you enter the site address in the URL bar, you can press tab, and if chrome has detected a search engine on the site, you can directly access it after pressing tab. Something like this.

What do I need? I need to know how chrome detects and searches for a search engine on a site. As I understand it, these are the key names of the site forms (/search and other parts of the URL) that it searches for and analyzes. The fact is that, for example, a search in the LiveStreet engine, chrome literally immediately sees, and automatically searches for taboos.

So, can you tell me what names and general parameters are needed for forms in order for chrome to define the form as a search one?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Keith, 2011-01-23
@tenbits

In short and quickly:

  • the page must include xml with OpenSearch description :
    <link rel="search" type="application/opensearchdescription+xml" title="Site Search" href="http://mysite.com/SearchEngineInfo.xml" />

  • and the file itself looks like:
    <?xml version="1.0" encoding="utf-8"?>
    <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
     <ShortName>Site Search</ShortName>
     <Description>The search engine</Description>
     <InputEncoding>UTF-8</InputEncoding>
     <Image type="image/x-icon" width="16" height="16">mysite.com/favicon.ico</Image>
     <Url type="application/opensearchdescription+xml" rel="self" template="http://mysite.com/SearchEngineInfo.xml" />
     <Url type="application/atom+xml" template="http://mysite.com/search?q={searchTerms}&p={startPage?}" />
     <Url type="text/html" template="http://mysite.com/search?q={searchTerms}&p={startPage?}" />
     <moz:SearchForm>mysite.com/search</moz:SearchForm>
    </OpenSearchDescription>

H
homm, 2011-01-23
@homm

opensearch

A
Andrey, 2013-12-23
@svistiboshka

does anyone know how to turn it off in chrome?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question