Web Extension version of the Firefox Lightbeam add-on
Перейти к файлу
Princiya Marina Sequeira 324d873942 screenshot updated. fixes #192 (#205) 2017-09-28 16:24:00 +01:00
css Hook up tracking protection toggle with web extensions. Fixes #143 (#193) 2017-09-01 10:19:29 -07:00
docs/images screenshot updated. fixes #192 (#205) 2017-09-28 16:24:00 +01:00
fonts Add first run page. Fixes #117. (#186) 2017-08-31 16:30:13 -07:00
images Add first run page. Fixes #117. (#186) 2017-08-31 16:30:13 -07:00
js Force layout nits (#203) 2017-09-28 14:25:52 +01:00
shavar-prod-lists@218c5dffa2 Add Disconnect Entity List (AKA whitelist). Fixes #98. 2017-07-19 16:25:39 +01:00
test/unit Store set method. Fixes #18 (#39) 2017-06-12 15:34:37 +01:00
.eslintignore Remove google font loading. Fixes #153. (#174) 2017-08-24 17:12:12 +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 Add in lightbeam extension id, fix bundling as node_modules doesn't work in web-ext, auto build the submodule. Changed inclusion paths to new ext-libs dir which is built with 'npm run build'. Fixes #159 (#172) 2017-08-23 13:23:36 +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
first-run.html Add first run page. Fixes #117. (#186) 2017-08-31 16:30:13 -07:00
index.html Name change. Fixes #195 (#196) 2017-09-01 15:34:03 -07:00
karma.conf.js Basic test environment setup (#23) 2017-05-29 16:03:31 +01:00
manifest.json Name change. Fixes #195 (#196) 2017-09-01 15:34:03 -07:00
package.json Name change. Fixes #195 (#196) 2017-09-01 15:34:03 -07: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.