This uses rollup to build the extension files. Install and run like this:
npm install
# Run this during development
npm startThe extension has four different entry points:
- The content script in
src/content.jsruns on the news article page, communicates with background script - the background script in
src/background.jswhich opens new tabs, navigates them around and scrapes the content - the options page in
src/options.jsis the options page for the extension - the popup in
popup/is opened when the extension icon in the toolbar is clicked
These are the data pieces inside:
src/providers.jscontains entities that you authenticate against and that grant accesssrc/sources.jscontains databases that you can get access to through providerssrc/sites.jscontains news sites, how to extract their meta data and which source could provide access
Additionally user data like credentials and chosen provider is stored via browser.storage.sync.
- Update version number in
package.jsonandmanifest.jsonand commit. git tag vX.Y.Zgit push --tags origin main- GitHub release Action will build, create release, sign Firefox extension, submit to Chrome Web Store and update website.