Suggest adding a search engine to firefox when a user is on a site

I was in duckduckgo and wanted to add a search engine field to my browser,

Usually you had to search the browser utility, but I was surprised when I saw that the browser was already detecting it.

enter image description here

How can I automatically find my site search?

Note:

I'm not looking (now) to implement an automatic suggestion function, I'm just trying to get a service stored in a browser (exactly the same behavior with stackoverflow + firefox)

-Edit -

I tried the code that I found on my site that matches the opensearch documentation:

1)

    <link title="your service name" type="application/opensearchdescription + xml " rel="
search " href="/opensearch.xml ">

2) xml file: /opensearch.xml

<OpenSearchDescription>
     <ShortName>DuckDuckGo</ShortName>
     <Description>Search DuckDuckGo (SSL)</Description>
     <InputEncoding>UTF-8</InputEncoding>
     <LongName>DuckDuckGo Search (SSL)</LongName>
     <Image width="16" height="16">http://duckduckgo.com/favicon.ico</Image>
     <Url type="text/html" method="get" template="https://duckduckgo.com/?q={searchTerms}"/>
</OpenSearchDescription>

But with my domain name and URL, and firefox does not detect the service (same as in the picture), what am I missing?

+3
3

(funcook.com) :

1) type :

<link title="Funcook" type="application/opensearchdescription + xml" rel="search" href="http://funcook.com/opensearch.xml" />

:

<link title="Funcook" type="application/opensearchdescription+xml" rel="search" href="http://funcook.com/opensearch.xml" />

2) opensearch.xml:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription>
[...]

:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
[...]
+2

-, Firefox, IE Chrome , OpenSearch Standard.

, OpenSearch XML, :

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName>Web Search</ShortName>
  <Description>Use Example.com to search the Web.</Description>
  <Tags>example web</Tags>
  <Contact>admin@example.com</Contact>
  <Url type="application/rss+xml" 
       template="http://example.com/?q={searchTerms}&amp;pw={startPage?}&amp;format=rss"/>
</OpenSearchDescription>

... <head> :

<link rel="search" 
  type="application/opensearchdescription+xml" 
  href="http://www.example.com/search.src" 
  title="Add Example.Com Search" />

lifehacker.com ( "", ), , , Facebook. , , .

+5

Well,

I just thought, why not check their code?

two steps:

1) specifying xml file

    <link title="your service name" type="application/opensearchdescription + xml " rel="
search " href=" / opensearch_ssl.xml ">

2) xml file: /opensearch_ssl.xml

<OpenSearchDescription>
     <ShortName>DuckDuckGo</ShortName>
     <Description>Search DuckDuckGo (SSL)</Description>
     <InputEncoding>UTF-8</InputEncoding>
     <LongName>DuckDuckGo Search (SSL)</LongName>
     <Image width="16" height="16">http://duckduckgo.com/favicon.ico</Image>
     <Url type="text/html" method="get" template="https://duckduckgo.com/?q={searchTerms}"/>
</OpenSearchDescription>

And it seems to be checked and marked as perceived

0
source

All Articles