See article on dev.to.
Run npm install
first.
To build this extension for Chrome:
npm run package
Then load dist
as unpacked extension for Chrome.
To build for Safari:
npm run deploy
The above will build the same extension resources in dist
, then copy its
contents to the extension "Resources" folder of the Swift project browser-ext.
Together the two projects serve as a template of creating browser extension
for both Safari and Chrome (possibly Mozilla Firefox, but not tested) using
React, TypeScript and esbuild.
The full AutoRefresh app (free and without Ads) implemented in a similar way
can be found in App store download (free and no Ads).