linux下的baidu,sogou 的firefox搜索扩展插件下载

[ 2007-12-01 20:05:58 | 作者: Admin ]
: | |
http://www.vtalkback.com/blog/firefox-searchplugins.zip
下载文件并解压后复制
sogou.xml,baidu.xml到 /root/.mozilla/firefox/ic2tesk1.default/searchplugins
注意 /root/.mozilla是个隐含目录

也可使用代码进行安装
载入search插件的源代码如下

<script
type="text/javascript">
<!--
function errorMsg()
{
alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
}
function addEngine(name,ext,cat,type)
{

if ((typeof window.sidebar == "object") && (typeof
window.sidebar.addSearchEngine == "function"))
{
window.sidebar.addSearchEngine(
"http://localhost.localdomain/plugins directory/"+name+".src",
"http://localhost.localdomain/plugins directory/"+name+"."+ext, name, cat );
}
else
{
errorMsg();
}
}

//–>
</script>

<a href=“javascript:addEngine(’MyPlugin’,'png’,'Reference’,0)”>MyPlugin</a>
[最后修改由 Admin, 于 2007-12-1 20:05:58]
评论Feed 评论Feed: http://www.vTalkback.com/blog/feed.asp?q=comment&id=157

这篇日志没有评论.

发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:  
验证码 * 请输入验证码