Mecanismo de pesquisa do Google no Firefox - Adicionando manualmente

Publicado por Andre Sobral em 29/04/2013

[ Hits: 10.158 ]

Blog: http://www.nuclearmaster.net

 


Mecanismo de pesquisa do Google no Firefox - Adicionando manualmente



Eu tinha um problema com o Firefox no Linux Mint 13, não permitia adicionar o mecanismo de pesquisa do Google.

Após solucionar o problema, compartilho para que outros tenham uma referência de resolução.

A localização dos mecanismos de pesquisa do Firefox estão no diretório: /usr/lib/firefox/distribution/searchplugins/locale/pt-BR/

Todos possuem a extensão ".xml". Por exemplo: "buscape.xml", "duckduckgo.xml", "wikipedia-br.xml".

A solução é criar um arquivo com o nome "google.xml" com o conteúdo aqui demonstrado e salvá-lo, ou copiá-lo para o diretório citado (operação realizada com privilégios de root).

Segue o conteúdo do arquivo a ser criado, "google.xml":

<!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Google</ShortName>
<Description>Google Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/png;base64,AAABAAEAEBAAAA

EAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADs9Pt8xetPtu9FsfFNtu%2BTzvb2
%2B%2Fne4dFJeBw0egA%2FfAJAfAA8ewBBegAAA
AD%2B%2FPtft98Mp%2BwWsfAVsvEbs%2FQeqvF8xO7%2F%2F%2F63yqkxdgM7gwE%2FggM%2BfQA%2BegBDeQDe7PIbotgQufcMufEPtfIPsvAbs%2FQvq%2Bfz%2Bf%2F%2B%2B%2F
ZKhR05hgBBhQI8hgBAgAI9ewD0
%2B%2Fg3pswAtO8Cxf4Kw%2FsJvvYAqupKsNv%2B%2Fv7%2F%2FP5VkSU0iQA7jQA9hgBDgQU%2BfQH%2F%2Ff%2FQ6fM4sM4KsN8AteM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<Url type="application/x-suggestions+json" method="GET" template="htt
ps://www.google.com/complete/search?client=firefox&q={searchTerms}"/>
<Url type="text/html" method="GET" template="https://www.google.com/search">
   <Param name="q" value="{searchTerms}"/><Param
name="ie" value="utf-8"/><Param name="oe" value="utf-8"/>
<Param name="aq" value="t"/><Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
   <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
</Url>
<!-- Keyword search URL is the same as the default, but with an additional parameter -->
<Url type="application/x-moz-keywordsearch" method="GET" template="https://www.google.com/search">
   <Param name="q" value="{searchTerms}"/><Param name="ie" value="utf-8"/>
   <Param name="oe" value="utf-8"/><
Param name="aq" value="t"/><Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
   <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
   <Param name="channel" value="fflb"/>
</Url>
<!-- Context/Right-click search URL is the same as the default, but with an additional parameter -->
<Url type="application/x-moz-contextsearch" method="GET" template="https://www.google.com/search">
   <Param name="q" value="{searchTerms}"/>
<Param name="ie" value="utf-8"/><Param name="oe" value="utf-8"/>
   <Param name="aq" value="t"/><Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
   <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
   <Param name="channel" value="rcs"/>
</Url>
<SearchForm>https://www.google.com/</SearchForm>
</SearchPlugin>


Pronto! Mecanismo de busca adicionado manualmente.

Iniciando o Firefox, no caso, o Google já estará disponível como buscador.

Outras dicas deste autor
Nenhuma dica encontrada.
Leitura recomendada

Login e startx em modo automático, sem KDM, GDM, SLIM ou qualquer outro display manager

Atualizando Cairo-Dock no Sabayon - Compilação direta

Interface gráfica para configuração do SAMBA

Colocando o Noatun e Kaboodle para tocar MP3 no Fedora

Sbotools no Slackware

  

Comentários

Nenhum comentário foi encontrado.



Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts