Plugin de Busca no firefox
Fui obrigado a criar esse plugin de busca para o firefox pois não encontrei nada disponível no site do addons do mozilla.
É só criar um um arquivo nesse diretório:
~/.mozilla/firefox/5yj3kkuq.default/searchplugins/baby.xml
5yj3kkuq.default = Acho que é criado pelo firefox aleatóriamente pra cada perfil.Então vai ser diferente para você.
Início do código
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Babylon</ShortName>
<Description>engineDescription</Description>
<InputEncoding>inputEncoding</InputEncoding>
<Image width="16" height="16">data:image/x-ico,%00%00%01%00%01%00%10%10%00%00%01%00%08%00h%05%00%00%16%00%00%00(%00%00%00%10%00%00%00%20%00%00%00%01%00%08%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00C%1D%11%00C%20%12%00E%1E%16%00F%1F%17%00E%22%18%00C%25%14%00%3C(%16%00%3C*%13%00W%23%1C%00%3B5%18%00W4%13%00k0%16%00O2%1D%00B6%1E%00W3!%00U6%1D%00U7%1C%00N5%25%00Y1%2C%00V9%1E%00h%3E%1B%00y9%20%00%82%3B%19%00f%40%1D%00f%3D%24%00fE%18%00P%3F%2C%00%919!%00X%3E-%00%84A%1A%00i%40'%00%8C%3C%23%00lF%24%00%7BH%20%00_C8%00cH-%00fJ%2B%00%89F'%00WN%2C%00oB%3E%00%98C4%00gN4%00sS(%00%98H1%00jW*%00XY%2F%00hT5%00%9AN1%00%A4N0%00d%5C7%00%95ND%00_%5C%40%00%60_J%00fi%3C%00%87%5E%5C%00%80eQ%00%AAkI%00zqO%00%93oK%00%9BrE%00kvP%00%A7j%5C%00%8DwN%00%88uZ%00%5D~%5B%00%B9m%5B%00%83sg%00%BDrX%00zxf%00xwi%00n%7Be%00%7B%7F%5C%00%C3zZ%00%88%86g%00%7B%87s%00%95%82%7D%00%92%85%7D%00u%91t%00z%93q%00f%93y%00%AE%91d%00_%96%7B%00%99%8A%87%00%9E%8E~%00~%95%7F%00v%9D%7D%00%89%9B~%00%AD%9Em%00%8A%98%86%00h%A2%7F%00w%A2%7D%00e%A2%86%00%9F%9A%81%00%95%98%89%00%8E%9F~%00%9E%9A%82%00%86%A0%88%00%7C%AA%7C%00%88%ACx%00%9D%A3%8C%00%A7%ACy%00y%AC%8A%00w%B4%7C%00%7F%AE%94%00%81%B5%86%00%8E%AA%97%00w%B2%93%00%92%B7%85%00%A8%A9%9F%00%B2%A6%A4%00%9B%BB%84%00%94%B2%99%00w%BF%8B%00%B6%A8%A2%00%AF%B0%96%00~%BB%9F%00%AE%B4%A1%00%CE%AC%AC%00%D1%B1%A4%00%A4%BA%A7%00%B9%C4%92%00%88%C2%A9%00%9E%C3%A9%00%B2%BC%B0%00%B8%C0%A9%00%A0%C4%AC%00%AD%C6%B2%00%AE%C8%B6%00%9B%CF%B7%00%A7%CD%B7%00%CF%CB%AE%00%93%D3%B6%00%AF%CC%BD%00%BB%D1%B4%00%9C%D9%B5%00%A0%D7%BE%00%EF%C8%BF%00%A8%D6%BF%00%C5%D4%B9%00%E0%D4%B0%00%C2%DC%B4%00%B3%DD%BA%00%B7%D6%C7%00%BC%DE%B9%00%AC%DE%C0%00%BB%DB%C2%00%C2%DA%C8%00%DB%D2%CF%00%CC%D8%CC%00%D1%DB%CB%00%B2%E1%CB%00%AE%E5%CC%00%AC%E8%CA%00%BE%E6%CD%00%D3%E4%D7%00%D7%E4%D6%00%C2%ED%D2%00%C8%F2%CF%00%C8%F3%DE%00%D1%F0%E1%00%E9%F1%E7%00%F1%F8%EB%00%FF%F6%EE%00%D0%FF%EF%00%E7%FF%ED%00%DC%FF%F3%00%E5%FF%F0%00%E6%FF%F5%00%EB%FF%F4%00%FA%FC%F6%00%ED%FF%F5%00%F7%FF%F2%00%F0%FF%F6%00%F7%FF%F5%00%FD%FE%F5%00%ED%FF%F9%00%FF%FF%F4%00%F6%FF%F8%00%FF%FD%FC%00%FF%FF%FC%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B2%93mRKLl%7B%B4%B4%B4%B4%B4%B4%B4%B4u6%12%03%02%04%22B%5D%9B%B4%B4%B4%B4%B4q'%08%00%1C%1A%06%05%11DX%B4%B4%B4%A9%94E%01%0E3NZ%40%09%074Jw%B4%B4%B1iF%0C%10%3Caph%26%13%0DcT%B4%B4%A6OM%23%0A5bfk%3A%0B%0F_%60%99%B4%B4QU.%17%2Cdnx8%1F%18%5Co%B4%B4%A4%5Be9%14!%3BWP0%1B%1Erz%97%B4%B4sYG%20%16%1D%19*%25%15%3F%8A%7D%B4%B4%A1%87j%5E%24%2FH%3E-1I%85%91%7F%B4%B4%B4%9EgV)%2BC%8B%8C%8F%9D%9C%81%9A%A0%B4%B4%AF%92t7(A%82%8D%86%98%89%84%B4%B4%B4%B4%B4%AD%95S2%3D%7C%90%83y%8E%B4%B4%B4%B4%B4%B4%B4%A8%AB%88v~%80%96%9F%AE%B3%B4%B4%B4%B4%B4%B4%B4%AA%A2%B0%A7%A3%A5%AC%B4%B4%B4%B4%FF%FF%00%00%F0%0F%00%00%F0%03%00%00%E0%03%00%00%80%01%00%00%80%01%00%00%80%00%00%00%C0%01%00%00%80%00%00%00%C0%01%00%00%80%01%00%00%C0%00%00%00%C0%03%00%00%E0%07%00%00%F0%03%00%00%F8%0F%00%00</Image>
<Url type="text/html" method="GET" template="http://online.babylon.com/cgi-bin/trans.cgi?layout=uol.txt&">
<Param name="lang" value="ptg"/>
<Param name="lang" value="ptg"/>
<Param name="word" value="{searchTerms}"/>
</Url>
<moz:SearchForm>searchFormURL</moz:SearchForm>
</OpenSearchDescription>
Se por acaso não aparecer nada de novo no campo de busca significa que há um erro no arquivo XML. Portanto deve-se revisá-lo.
Mais informações sobre como criar seus próprios componentes para Firefox pode ser encontrado aqui:
http://developer.mozilla.org/en/docs/Creating_OpenSearch_plugins_for_Firefox
É só criar um um arquivo nesse diretório:
~/.mozilla/firefox/5yj3kkuq.default/searchplugins/baby.xml
5yj3kkuq.default = Acho que é criado pelo firefox aleatóriamente pra cada perfil.Então vai ser diferente para você.
Início do código
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Babylon</ShortName>
<Description>engineDescription</Description>
<InputEncoding>inputEncoding</InputEncoding>
<Image width="16" height="16">data:image/x-ico,%00%00%01%00%01%00%10%10%00%00%01%00%08%00h%05%00%00%16%00%00%00(%00%00%00%10%00%00%00%20%00%00%00%01%00%08%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00C%1D%11%00C%20%12%00E%1E%16%00F%1F%17%00E%22%18%00C%25%14%00%3C(%16%00%3C*%13%00W%23%1C%00%3B5%18%00W4%13%00k0%16%00O2%1D%00B6%1E%00W3!%00U6%1D%00U7%1C%00N5%25%00Y1%2C%00V9%1E%00h%3E%1B%00y9%20%00%82%3B%19%00f%40%1D%00f%3D%24%00fE%18%00P%3F%2C%00%919!%00X%3E-%00%84A%1A%00i%40'%00%8C%3C%23%00lF%24%00%7BH%20%00_C8%00cH-%00fJ%2B%00%89F'%00WN%2C%00oB%3E%00%98C4%00gN4%00sS(%00%98H1%00jW*%00XY%2F%00hT5%00%9AN1%00%A4N0%00d%5C7%00%95ND%00_%5C%40%00%60_J%00fi%3C%00%87%5E%5C%00%80eQ%00%AAkI%00zqO%00%93oK%00%9BrE%00kvP%00%A7j%5C%00%8DwN%00%88uZ%00%5D~%5B%00%B9m%5B%00%83sg%00%BDrX%00zxf%00xwi%00n%7Be%00%7B%7F%5C%00%C3zZ%00%88%86g%00%7B%87s%00%95%82%7D%00%92%85%7D%00u%91t%00z%93q%00f%93y%00%AE%91d%00_%96%7B%00%99%8A%87%00%9E%8E~%00~%95%7F%00v%9D%7D%00%89%9B~%00%AD%9Em%00%8A%98%86%00h%A2%7F%00w%A2%7D%00e%A2%86%00%9F%9A%81%00%95%98%89%00%8E%9F~%00%9E%9A%82%00%86%A0%88%00%7C%AA%7C%00%88%ACx%00%9D%A3%8C%00%A7%ACy%00y%AC%8A%00w%B4%7C%00%7F%AE%94%00%81%B5%86%00%8E%AA%97%00w%B2%93%00%92%B7%85%00%A8%A9%9F%00%B2%A6%A4%00%9B%BB%84%00%94%B2%99%00w%BF%8B%00%B6%A8%A2%00%AF%B0%96%00~%BB%9F%00%AE%B4%A1%00%CE%AC%AC%00%D1%B1%A4%00%A4%BA%A7%00%B9%C4%92%00%88%C2%A9%00%9E%C3%A9%00%B2%BC%B0%00%B8%C0%A9%00%A0%C4%AC%00%AD%C6%B2%00%AE%C8%B6%00%9B%CF%B7%00%A7%CD%B7%00%CF%CB%AE%00%93%D3%B6%00%AF%CC%BD%00%BB%D1%B4%00%9C%D9%B5%00%A0%D7%BE%00%EF%C8%BF%00%A8%D6%BF%00%C5%D4%B9%00%E0%D4%B0%00%C2%DC%B4%00%B3%DD%BA%00%B7%D6%C7%00%BC%DE%B9%00%AC%DE%C0%00%BB%DB%C2%00%C2%DA%C8%00%DB%D2%CF%00%CC%D8%CC%00%D1%DB%CB%00%B2%E1%CB%00%AE%E5%CC%00%AC%E8%CA%00%BE%E6%CD%00%D3%E4%D7%00%D7%E4%D6%00%C2%ED%D2%00%C8%F2%CF%00%C8%F3%DE%00%D1%F0%E1%00%E9%F1%E7%00%F1%F8%EB%00%FF%F6%EE%00%D0%FF%EF%00%E7%FF%ED%00%DC%FF%F3%00%E5%FF%F0%00%E6%FF%F5%00%EB%FF%F4%00%FA%FC%F6%00%ED%FF%F5%00%F7%FF%F2%00%F0%FF%F6%00%F7%FF%F5%00%FD%FE%F5%00%ED%FF%F9%00%FF%FF%F4%00%F6%FF%F8%00%FF%FD%FC%00%FF%FF%FC%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B4%B2%93mRKLl%7B%B4%B4%B4%B4%B4%B4%B4%B4u6%12%03%02%04%22B%5D%9B%B4%B4%B4%B4%B4q'%08%00%1C%1A%06%05%11DX%B4%B4%B4%A9%94E%01%0E3NZ%40%09%074Jw%B4%B4%B1iF%0C%10%3Caph%26%13%0DcT%B4%B4%A6OM%23%0A5bfk%3A%0B%0F_%60%99%B4%B4QU.%17%2Cdnx8%1F%18%5Co%B4%B4%A4%5Be9%14!%3BWP0%1B%1Erz%97%B4%B4sYG%20%16%1D%19*%25%15%3F%8A%7D%B4%B4%A1%87j%5E%24%2FH%3E-1I%85%91%7F%B4%B4%B4%9EgV)%2BC%8B%8C%8F%9D%9C%81%9A%A0%B4%B4%AF%92t7(A%82%8D%86%98%89%84%B4%B4%B4%B4%B4%AD%95S2%3D%7C%90%83y%8E%B4%B4%B4%B4%B4%B4%B4%A8%AB%88v~%80%96%9F%AE%B3%B4%B4%B4%B4%B4%B4%B4%AA%A2%B0%A7%A3%A5%AC%B4%B4%B4%B4%FF%FF%00%00%F0%0F%00%00%F0%03%00%00%E0%03%00%00%80%01%00%00%80%01%00%00%80%00%00%00%C0%01%00%00%80%00%00%00%C0%01%00%00%80%01%00%00%C0%00%00%00%C0%03%00%00%E0%07%00%00%F0%03%00%00%F8%0F%00%00</Image>
<Url type="text/html" method="GET" template="http://online.babylon.com/cgi-bin/trans.cgi?layout=uol.txt&">
<Param name="lang" value="ptg"/>
<Param name="lang" value="ptg"/>
<Param name="word" value="{searchTerms}"/>
</Url>
<moz:SearchForm>searchFormURL</moz:SearchForm>
</OpenSearchDescription>
Se por acaso não aparecer nada de novo no campo de busca significa que há um erro no arquivo XML. Portanto deve-se revisá-lo.
Mais informações sobre como criar seus próprios componentes para Firefox pode ser encontrado aqui:
http://developer.mozilla.org/en/docs/Creating_OpenSearch_plugins_for_Firefox
Marcadores: programação
0 Comentários:
Postar um comentário
<< Home