REVIEWERS! Note for reviewers a bit down the page.
Second-hand alert - Norway is a browser extension that gives you an alert when second hand/used alternatives to new products are available. Browse a connected store and get get a link to a second-hand alternative when available.
The about/help-page is separate from the plugin to easier update install instructions and can be found on secondhandalert.xyz. The ? in the top right corner of the browser extension points to this site.
How to develop and debug a new extention for a country or additional stores in an existing one is found in the development-documentation repository.
Build and structure documentation for reviewers and developers.
npm install
npm run build
npm run packageThe build process is mostly Rollup with ./rollup.config.js, but the different versions of manifest.json is a custom JavaScript thing. Directly under the ./lib-folder you have all functions and variables to build the browser extension for different browsers. Files in ./lib/<browser>/ imports the correct functions and variables needed for rollup to build to ./dist-unpackaged/<browser>/. zip-chrome and web-ext is used to package the browser extensions into the ./dist-folder.
All external libraries listed in package.json, but also here:
"@arrow-js/core": "^1.0.0-alpha.10"To populate popup.html with content. Pulls info from background.js. Bundled together with lib.popup.js to become popup.js. Not used in content scripts."@rollup/plugin-node-resolve": "^16.0.1"Rollup-plugin for popup.jsrollup": "^4.48.1"Bundling tool for content scripts, background.js and popup.js"standard": "^17.1.2"Used for ensuring good coding practice. Not all files are possible to keep in line with StandardJS."web-ext": "^9.0.1"Testing and packing extension for Firefox./lib/manifest.jsCustom build-script for manifest.json
Copyright © 2024 - 2026 Espen Klem. All rights reserved