GithubHelp home page GithubHelp logo

palewire / beyond_the_paywall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla-rally/beyond_the_paywall

0.0 1.0 0.0 4.77 MB

Stanford "Beyond the Paywall" Study

License: Mozilla Public License 2.0

JavaScript 98.10% HTML 1.90%

beyond_the_paywall's Introduction

Study: Beyond the Paywall

This repository contains the extension code for Greg Martin and Shoshana Vasserman's study to be hosted by Mozilla Rally.

What's in this repo?

  • /schemas
    • This directory contains files that outline the data being sent to Mozilla's servers, and examples of that data.
  • /src
    • This directory contains the source code for this extension
  • /tests/integration
    • This directory would contain integration tests
    • It's currently (as of 5/11/21) just the template scripts
  • manifest.json
    • This file contains important permission information, as well as the location of the background script to run
  • package.json
    • This file contains important information about dependant packages and npm scripts
  • web-ext-config.js
    • This file contains information to run the extension locally
    • The use of Firefox nightly is configured in this file

How do I run this extension locally?

  • Start by cloning this repository
  • You might need the Firefox nightly build, which can be downloaded here
  • You'll also need to install node and npm locally.
  • In the root directory of the repo, run npm install to install all dependency packages
  • In the root directory of the repo, run npm run build and ensure there are no errors
  • Once you've built the package without errors, you can run npm run watch to start the extension. A version of Firefox with the extension should start automatically.
    • In about:debugging, you should see your extension under "This Firefox"
    • If you click "Inspect", you'll be guided to a debugging site for your extension
    • The data should be available under Storage > Extension Storage > moz-extension://......
    • If you want to dump the current data, type let data = await browser.storage.local.get() in the debugging console, and then print the data variable. You can copy the object from there
      • Note: This command must be run from the about:debugging -> Extension Console. It won't work from the normal Firefox console.

Note: These instructions are written for a MacOSX user. They'll likely be very similar for a Linux user, but not for Windows.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.