second-hand-alert

Second hand alert

Alert when second hand alternative is available!

Second-hand alternative alert. Browser addon to give you an alert when second hand/used alternatives to new products are available.

Description

When in store.com, notify you if there is a used alternative at secondhand-store.com.

Moving parts

Preparing, Packaging and Publishing

Chrome

How to pack it (using zip). Chrome webstore Before you publish have some pointers. And there is a Chrome extension develop guide.

Firefox

Need to install web-ext: sudo npm install --global web-ext. Also some pointers on how to make it work on Firefox for Android.

Safari OSX/iOS

Need to use Xcode, but maybe it can be done on something that is inherited from main here.

Browser extension (Chrome first)

You can define a content script for each

Notification API

The notifications API

To use notifications on mobile browsers, it seems you need to use getNotifications() and showNotification() form a service worker. And the service worker need https.

So i.e. ngrok needs to be set up like done on the geo-search-helper repo.

Service worker

The notification part needs a service worker.

Analytics

Plausible.io

Get data from FINN

fetchAPI

Get content from a HTML page

Using built in dom-parser and regex