A research project on how web users consume, are exposed to, and share news.
- Node.js, available via Homebrew on macOS
- Mozilla web-ext
See the Web Science repository for a description of the overall structure, including the common study modules. This repository contains the study component, described below.
Study - /study/
The study includes logic and data specific to this research project. This is, by design, the lightest component—the overwhelming majority of our implementation is not study specific, in order to promote reusability and facilitate rapid study development.
- study.html - A background page for loading background scripts. We use a background page for ES6 module support.
- study.js - A background script that configures study and utility modules to conduct our study of how web users consume, are exposed to, and share news.
- newsDomains.js - The news domains of interest for our study.
- newsFacebookAccounts.js - Facebook accounts of media
- newsYouTubeChannels.js - Youtube channels of media
Launch an instance of Firefox with a temporary profile using web-ext run
in the extension directory.
To submit encrypted pings through the Ion Platform, run on a Nightly build with the extensions.experiments.enabled
pref set, for example:
web-ext run --pref=extensions.experiments.enabled=true -f nightly
.
Debugging output is available in Tools → Web Developer → Browser Console. Make sure that the Show Content Messages option is checked. You might find it helpful to set a filter for debugging messages of interest.
The repository also contains configuration files for convenient debugging in Visual Studio Code:
- /.vscode/launch.json - Launch configurations for the extension.
- /jsconfig.json - Autocomplete and type checking configuration for the extension.
If you open the repository base directory in Visual Studio Code, these files will automatically load.