• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

duckduckgo/firefox-zeroclickinfo: Firefox Add-on using the DuckDuckGo Zero-click ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

duckduckgo/firefox-zeroclickinfo

开源软件地址:

https://github.com/duckduckgo/firefox-zeroclickinfo

开源编程语言:

JavaScript 71.1%

开源软件介绍:

firefox-zeroclickinfo

This repository has been deprecated. Our current Firefox extension can be found at: https://github.com/duckduckgo/duckduckgo-privacy-extension.

DuckDuckGo enhancements for Firefox.

This addon can

  • add a handy DuckDuckGo toolbar button to your browser for easy access to !bang tags (removable).
  • add DuckDuckGo as your default search engine through the address bar, search bar and context right-click menu (reversible).
  • show DuckDuckGo instant answers on Google/Bing (removable).

Setting the partner parameter

First of all, there is a PARTNER_QUERY_ADDITION constant in lib/main.js that should be set to something like &t=partnerid in order to function properly.

Also, you might want to add the t parameter to the search engine definition which is located at data/search.xml. It usually has a form of <Param name="t" value="partnerid"/>.

You can easily automate both these steps by running

$ make partnerxpi PARTNER_ID=partnerid

which will do both steps for you and provided that you have the Add-on SDK installed it will try to build it for you into a file ddg_for_firefox-partnerid.xpi.

Dependencies

jpm is required.

  • Install through node: npm install jpm
  • Update PATH: export PATH="$HOME/node_modules/.bin/:$PATH"

Find more information on MDN

Testing Checklist

Since we don't yet have automated tests, here is a checklist of manual tests to perform:

  • Extension installs

  • Popup opens

  • Search box is empty

  • Search works and defaults to DDG

  • Click a bang, the bang is added to the search box

  • Click another bang, the bang in the search box is replaced

  • Search with bang works

  • Expand/collapse button on right of search hides the bang options

  • Click "I'm feeling ducky" and search. Redirects to first organic

  • Modified options, both in the popup and in the options.html page, are saved

  • When safe search is unchecked, the URL for a search contains the &kp=-1 parameter

  • When "remember last search" is checked, on popup open the search box will contain the last performed search




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
harthur/firefox-client: [UNMAINTAINED] Node.js remote debugging client for Firef ...发布时间:2022-05-13
下一篇:
zxlie/FeHelper: 发布时间:2022-05-13
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap