Firefox:FirefoxFAQ 4
Mozilla中文Wiki
[编辑]
如何自制搜索插件
by puhongyi
ff自带了数个搜索引擎~但是都是en搜索引擎~即便是官网提供的搜索引擎中也唯独缺少了中文搜索引擎~~ 其实搜索引擎插件很简单~ 不过是简单的将搜索栏中的关键字加上几个控制字串组织一下发送给指定网址罢了 以如下google为例: 在软件安装目录下的searchplugins目录内存放了已有的搜索引擎 建立文件GoogleChina.src 图片可以借用已有的google.gif改名为googleChina.gif即可 用emeditor一类的文本编辑软件打开googleChina.src如下 表用记事本~记事本打开的话就都粘在一堆看都看不清楚了 我用的是emeditor,其他类似可以替代记事本的工具很多~随便选一个吧 个人推荐emeditor
代码:
<SEARCH
version = "7.1"
name="Google China"定义搜索引擎名称
description="Google Search China"描述信息
method="GET"
action="http://www.google.com/search"搜索页面地址
queryEncoding="UTF-8"
queryCharset="UTF-8"
>
<input name="hl" value="zh-CN">hl控制符指明搜索引擎为简体中文搜索引擎
<input name="ie" value="UTF-8">ie控制符指明搜索关键字的编码格式,
<input name="oe" value="UTF-8">这个我不清楚~以前用sleipnir时并无用到此关键字,猜测应该是现实结果字符的编码
<input name="lr" value="lang_zh-CN%7Clang_zh-TW">lr控制符是指定搜索栏关键字的语言~例中是繁体和简体
<input name="inlang" value="zh-CN">关键字 inlang是指在何种语言中搜索(google首页不是有在所有语言、简体、繁体三种选择么~)可以设为zh-cn中文
# There are several bugs in the code for the Next and Previous buttons; therefore, they are disabled
#<inputnext name="start" factor="20">
#<inputprev name="start" factor="20">
<input name="q" user>
<input name="sourceid" value="mozilla-search">
<interpret
browserResultType="result"
resultListStart="<!--a-->"
resultListEnd="<!--z-->"
resultItemStart="<!--m-->"
resultItemEnd="<!--n-->"
charset = "UTF-8"
>
</search>
<BROWSER
alsomatch=""
update=""
updateicon=""
updatecheckdays="3"
>
很简单吧 yahoo等也是类似道理 只要用记事本把拿一个现有的搜索引擎打开对照一看就可以很容易摸索出来了 而且真正变得都是input name那一段~~其他地方只有少数比如搜索页面地址需要改动
[编辑]
如何删除多余的搜索引擎
搜索引擎插件可以到Mycroft (http://mycroft.mozdev.org)下载、安装,不想要的可以卸载:
- 先找到 Mozilla 或 Firefox 安装目录((对于 Windows 用户来说,通常为 C:\Program Files\Mozilla 或 C:\Program Files\Mozilla Firefox,注意不要和个人设置目录相混淆))。
- 找到子目录 searchplugins。
- 重起 Firefox,删除的搜索引擎插件应该就没有了。
更多信息参考: http://kb.mozillazine.org/index.phtml?title=Uninstall_Search_Plugins
[编辑]
如何把首页设置为google搜索页
在 工具->首选项->基本信息 中,将主页改为 http://www.google.com/firefox 这是google为firefox特制的搜索页面。
![[首页]](/stylesheets/images/wiki.png)