阅读:3817回复:12
关于自制搜索引擎插件.
搜到了https://www.firefox.net.cn/forum/viewtopic.php?t=107
完全不知所云 在软件安装目录的相应文件夹里 都是XMl文件 而且格式也与描述不同.. 是我自己弄错了 还是那帖子太老了? <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,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADs9Pt8xetPtu9FsfFNtu%2BTzvb2%2B%2Fne4dFJeBw0egA%2FfAJAfAA8ewBBegAAAAD%2B%2FPtft98Mp%2BwWsfAVsvEbs%2FQeqvF8xO7%2F%2F%2F63yqkxdgM7gwE%2FggM%2BfQA%2BegBDeQDe7PIbotgQufcMufEPtfIPsvAbs%2FQvq%2Bfz%2Bf%2F%2B%2B%2FZKhR05hgBBhQI8hgBAgAI9ewD0%2B%2Fg3pswAtO8Cxf4Kw%2FsJvvYAqupKsNv%2B%2Fv7%2F%2FP5VkSU0iQA7jQA9hgBDgQU%2BfQH%2F%2Ff%2FQ6fM4sM4KsN8AteMCruIqqdbZ7PH8%2Fv%2Fg6Nc%2Fhg05kAA8jAM9iQI%2BhQA%2BgQDQu6b97uv%2F%2F%2F7V8Pqw3eiWz97q8%2Ff%2F%2F%2F%2F7%2FPptpkkqjQE4kwA7kAA5iwI8iAA8hQCOSSKdXjiyflbAkG7u2s%2F%2B%2F%2F39%2F%2F7r8utrqEYtjQE8lgA7kwA7kwA9jwA9igA9hACiWSekVRyeSgiYSBHx6N%2F%2B%2Fv7k7OFRmiYtlAA5lwI7lwI4lAA7kgI9jwE9iwI4iQCoVhWcTxCmb0K%2BooT8%2Fv%2F7%2F%2F%2FJ2r8fdwI1mwA3mQA3mgA8lAE8lAE4jwA9iwE%2BhwGfXifWvqz%2B%2Ff%2F58u%2Fev6Dt4tr%2B%2F%2F2ZuIUsggA7mgM6mAM3lgA5lgA6kQE%2FkwBChwHt4dv%2F%2F%2F728ei1bCi7VAC5XQ7kz7n%2F%2F%2F6bsZkgcB03lQA9lgM7kwA2iQktZToPK4r9%2F%2F%2F9%2F%2F%2FSqYK5UwDKZAS9WALIkFn%2B%2F%2F3%2F%2BP8oKccGGcIRJrERILYFEMwAAuEAAdX%2F%2Ff7%2F%2FP%2B%2BfDvGXQLIZgLEWgLOjlf7%2F%2F%2F%2F%2F%2F9QU90EAPQAAf8DAP0AAfMAAOUDAtr%2F%2F%2F%2F7%2B%2Fu2bCTIYwDPZgDBWQDSr4P%2F%2Fv%2F%2F%2FP5GRuABAPkAA%2FwBAfkDAPAAAesAAN%2F%2F%2B%2Fz%2F%2F%2F64g1C5VwDMYwK8Yg7y5tz8%2Fv%2FV1PYKDOcAAP0DAf4AAf0AAfYEAOwAAuAAAAD%2F%2FPvi28ymXyChTATRrIb8%2F%2F3v8fk6P8MAAdUCAvoAAP0CAP0AAfYAAO4AAACAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAA</Image> <Url type="application/x-suggestions+json" method="GET" template="http://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl={moz:locale}&q={searchTerms}"/> <Url type="text/html" method="GET" template="http://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"/> <!-- Dynamic parameters --> <Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/> <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/> </Url> <SearchForm>http://www.google.com/firefox</SearchForm> </SearchPlugin> |
|
|
1楼#
发布于:2010-09-12 15:31
|
|
|
2楼#
发布于:2010-09-12 15:31
|
|
|
3楼#
发布于:2010-09-12 15:31
就不能自己写了?
为了添加一个搜索引擎...还要安装个Add-on.. 得不偿失/ 难道修改格式之后就没有人研究过了? |
|
|
4楼#
发布于:2010-09-12 15:31
装了那个扩展,搞好再卸载就行了呗.
你想要google的加密搜索? <SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/"> <ShortName>Google SSL</ShortName> <Description>Google Search SSL</Description> <InputEncoding>UTF-8</InputEncoding> <Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAt5JREFUeNpsU1tIVFEU3fc1jnd8MONjRvOVaKJoGGiCEYJgoBBB0EOILIrCPoJ%2Bish%2Bwo8%2BiigiIqKGLCiSQsLoR8QwsVTUtGFwHEcdnTvjPK7Oe%2B7jnO4MKFp3c86Bs9l7nb3W3ofAGMO2YSSBLEYh5SNJZVGAMKP4SaAoSrkjIAgCgEhGpw6gYZf1PjSDPVIFbBoDckhqFhJiR4GpvJSUsWhfdiV4fj4R3Zh90GfuWSstLfgfYIULgZOtBVM6c8c29fncwuyX3mxDETLVnL7rWR53rfx50wViYiMev72TswdAQ5GQReBaecPSO%2FfzcTfFsO9iER04HWPZBlPNdY0jnYaYWwAI7uSQuwGQiAB5%2BYZQIAoJMczrciqgqb0HTFlZ%2FYYMDcgSPiqLAYU9pQ4gJCSYnpxwuEMs5Jka25N6GcsKobiiRQpyFpCDTisB2yKqUCAAQcA1M0oJ1v7CkrYuSeAWkLg5JqPwvSXrwHsA7yeM2GS%2F1CsgCAyllYdkv2v4%2FO%2BpR90kjY6kiXh47udLHA9aOvPLzkS0mftS7VatgNJpobi1Daqb6mPzI33Ped%2FaV5sjYNfnHK6UE7GWbGPzCJLWASFZvYIUOUUfQ27R2fK6Cx9zi1qf2C0D07SGLSg70DkU4H51xCMeIEhKvQJlAkkdyC%2BU1zstEx9uxSKeb4Icd%2FtYY0tVw02zRr%2F%2FWXx9sJYgmLAKAAa9obGO93CXJkdf3acg8rTs4GWADBOgTdsgtz56Iy2zpE8RKjmCNhUAAuKSEewrfsjNqy4ExgDltVeVCBkYLQ28cyLPNvt2EYkKh1193EOBWxiaW51zvi6vOHExJAhGr391QMfmhdMEX%2F2W33oswP24RpJSMNludQ2EceRfGrkSDY1%2Fzzc2HI8F1075ha1gJLg4zXtnTkoJn41i6F1T8A8Amy6BXh9S%2FrTdHHbzZoLSkoBFhLEEWawAWCsDTdPKZnZy%2FgowAP1SVhbvUfi1AAAAAElFTkSuQmCC</Image> <Url type="text/html" method="GET" template="https://encrypted.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"/> <!-- Dynamic parameters --> <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/> </Url> <SearchForm>https://encrypted.google.com/</SearchForm> </SearchPlugin> |
|
|
5楼#
发布于:2010-09-12 15:31
.加密搜索那里都有..我要的不是加密搜索.....
http://www.google.com/cse/home?cx=01719 ... rvj51ftram 而且我并不是制定要这一个 我希望以后碰到需要的可以自己写.. |
|
|
6楼#
发布于:2010-09-12 15:31
zj45499:.加密搜索那里都有..我要的不是加密搜索..... 你看看那个扩展做了什么工作就是了! |
|
7楼#
发布于:2010-09-12 15:31
怎..么看?
|
|
|
8楼#
发布于:2010-09-12 15:31
不要沉了....
|
|
|
9楼#
发布于:2010-09-12 15:31
读代码
|
|
10楼#
发布于:2010-09-12 15:31
http://mycroft.mozdev.org/search-engine ... anguage=zh
在这里提交界面就可以了,哪用自己写代码那么麻烦 |
|
|
11楼#
发布于:2010-09-12 15:31
|
|
|
12楼#
发布于:2010-09-12 15:31
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<!-- 标题 --> <ShortName>标题</ShortName> <!-- 描述 --> <Description>描述</Description> <!-- 编码 --> <InputEncoding>编码</InputEncoding> <!-- 图标宽和高(仅数字,无单位) 图标base64编码 --> <Image width="宽" height="高">base64图标</Image> <!-- 搜索建议地址 --> <Url type="application/x-suggestions+json" method="GET" template="搜索建议的地址"/> <!-- mime格式 get or post 搜索地址--> <Url type="text/html" method="GET" template="http://www.google.com/search"> <!-- 搜索的参数 --> <!-- 关键词 --> <Param name="q" value="{searchTerms}"/> <!-- Dynamic parameters --> </Url> <!-- 无关键词,直接单击搜索按钮跳转地址 --> <SearchForm>http://www.google.com/firefox</SearchForm> </SearchPlugin> |
|