给Firefox3增加baidu搜索并设置搜索默认打开新tab

默认情况下,firefox3使用Google作为搜索引擎,同时还不能直接配置添加baidu的搜索,可以找到你Firefox安装路径下的searchplugins目录,把下面的内容保存为baidu.xml放入该目录,回到firefox里面设置搜索引擎就可以了。

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Baidu (Chs)</os:ShortName>
<os:Description>Baidu (Chs)</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A
/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9gFGwQ7HFL7cKcAAAI9SURBVDjL
nZPLS5RRGMZ/3zffzKRZRqQiqAy0yV2k1ipaGEIEQbSxggxq08XILgRRRHYhov6BgjbVIhEJoqCW
LSpBgki8zSV0RnM0p1FjnO9yzttinBuz84UD73MO5znPed73Nbg3JgBoAdGgAaVyWGnQOoe9fF6C
lYcFILda2UgYJz9ioqXiIDxl87B/kdGfWQAiYZtYxKlkUB4mWpftOY7w4vkyr16u8ORRiljE4WzP
PJfOJytJlC5XkP6rCAQMtIJtNT6CfoPUkmIto/E8IbWkygk8hYXKKZiZdum/vcimKpPOrmrSKcXu
tiDt+6o4faa2cCc+49Lc4i8ogBvfRURk4HVaQg1Tsn/vLxERiYZtya5pyUc0bMvxYwnpPhqX33Ou
iIhwaEAKHoR2Bmhq9lNXb/Hh3T8A+i7Oc6V3nljEYWhwlVjUYWQ4S2LGzSnQGgud+9ee9iouX9/O
QtJjV2uAvgtJJsZtAkGTxQXF3Qd1fPuaobHRYke9r8QDL6fA54PDR2qYS3hc7U0yOW7jueC5mi+f
17h5bYHHTxtIxF1CoUBJFbyis9Gwy6VzScZGHVy33PCJMYf7d/7Q1OIHI19GhZmvgggMvVlh9IeN
61Y2VzqtGRnOEp8uYdYaC1VU4A8Y2LZgmoCA1oJhGlg+ECCT0czNeiWNJEUPDANO9NQym/CYmnTY
usXkwMFqAN4OrrKc1rR1BOns2lymAE59ko0GHc/EQmmM7vfFMVV6fVTXc63Ak9xrhSWF8f8P3gWJ
2CXawYUAAAAASUVORK5CYII=</os:Image>
<SearchForm>http://www.baidu.com</SearchForm>
<os:Url type="text/html" method="GET" template="http://www.baidu.com/s?ie=utf-8&amp;oe=utf-8&amp;ct=0&amp;wd={searchTerms}">
</os:Url>
<os:Url type="application/x-suggestions+json" method="GET" template="http://www.baidu.com/s?ie=utf-8&amp;oe=utf-8&amp;ct=0&amp;wd={searchTerms}">
</os:Url>
</SearchPlugin>

另外,在firefox的搜索框里面输入内容回车会在当前tab下显示搜索结果,如果同时按住alt键可以新开tab显示搜索结果页面,但是感觉还是不方便,可以通过如下方式设置默认打开新tab窗口显示结果。
1. 在地址栏里面输入 about:config 回车进入firefox设置页面
2. 找到browser.search.openintab项,双击该项,则把默认值false修改为了true
重新打开firefox完成设置。

Category: 其他技术  Tags: ,
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
2 Responses
  1. kevin says:

    很强大,不过偶还是喜欢谷歌搜索引擎,哈哈。最近在玩google chrome

  2. Michael says:

    [Comment ID #30136 Will Be Quoted Here]

    试用了,还是有些问题的,毕竟是新东西,多家竞争对用户来说反正是好事。

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image