Skip to content

【教程】为 Firefox 添加搜索引擎 Codelf 并实现一键搜索 #13

@asin929

Description

@asin929

Firefox Quantum 已失效,请参看【教程】添加 Codelf 到 Firefox Quantum 搜索引擎列表实现一键搜索


以下步骤为firefox添加搜索引擎CODELF并实现一键搜索。

1. 安装插件Search Engine Creator

打开该插件,添加如下字段

  • Engine name*: CODELF
  • Search URL*: http://unbug.github.io/codelf/#{searchTerms}
  • Icon URL: https://camo.githubusercontent.com/48196d159b6cf236515945271083728c31aa95d2/687474703a2f2f756e6275672e6769746875622e696f2f636f64656c662f7265736f75726365732f696d616765732f636f64656c665f6c6f676f2e706e67

添加搜索引擎CODELF

点击"Create engine",创建搜索引擎成功,如下所示
screenshot from 2016-01-30 17 35 58

2. 添加中文编码支持

添加搜索引擎成功后,进行英文搜索没有问题,输入中文则不行,因此需设置编码为UTF-8。

打开火狐的个人配置文件夹,在searchplugins文件夹里找到刚生成的搜索引擎文件"codelf.xml",在其中添加<os:InputEncoding>UTF-8</os:InputEncoding>,之后重启火狐,测试中文搜索正常。

3. vimperator加速

安装了vimperator的用户,可以自定义搜索引擎的关键字,比如定义CODELF的关键字为“cf”。之后,直接输入“t cf 新年快乐”即可进行搜索。

codelf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions