Web Extension version of the Firefox Lightbeam add-on
Перейти к файлу
Andrew Hayward 9417a3ab28 Switching from native 'confirm' prompt to HTML dialog for reset prompt. (#221)
Adds Google's `dialog-polyfill` as a dependency.
2017-10-09 11:48:41 +01:00
docs/images screenshot updated. fixes #192 (#205) 2017-09-28 16:24:00 +01:00
shavar-prod-lists@218c5dffa2 Add Disconnect Entity List (AKA whitelist). Fixes #98. 2017-07-19 16:25:39 +01:00
src Switching from native 'confirm' prompt to HTML dialog for reset prompt. (#221) 2017-10-09 11:48:41 +01:00
test/unit Store set method. Fixes #18 (#39) 2017-06-12 15:34:37 +01:00
.eslintignore Fix release (#210) 2017-09-29 01:39:56 +01:00
.eslintrc.json Initial COC and Contributing docs. Fixes #127. (#138) 2017-08-29 08:36:36 -07:00
.gitattributes Attempt to fix those line endings (#194) 2017-09-01 10:07:35 -07:00
.gitignore Fix release (#210) 2017-09-29 01:39:56 +01:00
.gitmodules Add Disconnect Entity List (AKA whitelist). Fixes #98. 2017-07-19 16:25:39 +01:00
.travis.yml Adding travis builds (#40) 2017-06-07 12:18:13 +01:00
CODE_OF_CONDUCT.md Initial COC and Contributing docs. Fixes #127. (#138) 2017-08-29 08:36:36 -07:00
CONTRIBUTING.md Initial COC and Contributing docs. Fixes #127. (#138) 2017-08-29 08:36:36 -07:00
LICENSE Initial commit 2017-04-20 12:55:56 +10:00
README.md screenshot updated. fixes #192 (#205) 2017-09-28 16:24:00 +01:00
karma.conf.js Basic test environment setup (#23) 2017-05-29 16:03:31 +01:00
package.json Switching from native 'confirm' prompt to HTML dialog for reset prompt. (#221) 2017-10-09 11:48:41 +01:00

README.md

Firefox Lightbeam

This is the web extension version of the Firefox Lightbeam add-on for visualizing HTTP requests between websites in real time.

The Firefox Lightbeam extension by Mozilla is a key tool for Mozilla to educate the public about privacy.

lightbeam-screenshot

Quick Start

Clone the repository

Note This repository uses a submodule to allow some third party requests. To ensure the submodule is cloned along with this repository, use a modified clone command: git clone --recursive https://github.com/mozilla/lightbeam-we.git

Run the web extension

There are a couple ways to try out this web extension:

  1. Open Firefox and load about:debugging in the URL bar.

    • Click the Load Temporary Add-on button and select the manifest.json file within the directory of this repository.
    • You should now see the Lightbeam icon on the top right bar of the browser.
    • Click the Lightbeam icon to launch the web extension.
  2. Install the web-ext tool, change into the directory of this repository, and type web-ext run.

    • This will launch Firefox and install the extension automatically.
    • This tool gives you some additional development features such as automatic reloading.

Development Guide

Download dependencies

Run npm run build.

Update the submodule

To manually update the submodule at any time during development, run git submodule update.

Testing

Run npm run test to check that everything is OK.

  • If you have installed eslint globally, you will have to install globally the following eslint plugins too:
    • eslint-plugin-json
    • eslint-plugin-mocha
  • Test suites include lint and unit testing. You can individually run lint or unit tests using the following commands:
    • npm run lint:eslint
    • npm run test:karma

Eslint is used for linting. Karma, Mocha & Chai are used for unit testing. Additionally the test suites are run on the Travis service providing continuous integration support.