duckduckgo/duckduckgo-privacy-extension

Name: duckduckgo-privacy-extension

Owner: DuckDuckGo

Description: DuckDuckGo Privacy Essentials browser extension for Firefox, Chrome, Safari.

Created: 2017-12-11 23:26:44.0

Updated: 2018-05-24 20:01:17.0

Pushed: 2018-05-24 20:10:04.0

Homepage: https://duckduckgo.com/app

Size: 18482

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DuckDuckGo Browser Extensions

DuckDuckGo Firefox, Chrome, and Safari extensions

This software is licensed under the terms of the Apache License, Version 2.0 (see LICENSE). Copyright (c) 2012 - 2017 duckduckgo.com

Pre-Requisites
Set up development environment
Build

Load the extension in Safari from the build/duckduckgo.safariextension/dev/duckduckgo.safariextension directory using the extension builder

Development flow

Shared JS, CSS, and images are located in the shared directory.

Popup: shared/js/ui Background: shared/js/

Browser specific files, including manifest files, are located in browsers/<browser-name>

Run the dev build task for your browser from the 'Build' section above. The build files are located in /build/<browser>/dev. Point your browser to this location to load the extension:

After running the build task it will continue watching for changes to any of the source files. After saving any changes to these files it will automatically rebuild the dev directory for you.

Testing

An easy way to find your extension ID is to go to the settings page for the extension. The window URL will have the extension ID in it.

Selenium Testing (ratings.js)

Setup

  1. For remote linux machine, first setup xvbf: source selenium-test/setup.sh
  2. npm install
  3. grunt

Testing Single Site ./selenium-test/ratings.js -u https://website.com

Testing Top 500 ./selenium-test/ratings.js -n 2 (where n = [1 - 500])

Testing Multiple Sites ./selenium-test/ratings.js -f urls.txt (file should have 1 url on each line)

Using XVFB To test on a remote server with XVBF installed, add -x flag: ./selenium-test/ratings.js -x -u https://website.com

Extension Development and Release Plan

Please make an issue before working on any new features or bug fixes.**

Development
Releasing New Versions
Chrome
Firefox
Safari

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.