- Calculate Longitudinal Chromatic Aberration and display any website with LCA myopic defoucs applied.
- Uses Manifest v3 (not yet compatible with Firefox)
- Use npm dependencies thanks to Parcel 2.
- Auto-syncing options.
- Auto-publishing with auto-versioning and support for manual releases.
Applied strong Myopic Defocus on Wikipedia. For best result, settings should be adjusted for viewing conditions.
- This extension from Chrome Web Store: Myopic Defocus .
- Live demo and desktop version: refractify.io
- Checkout the copied repository to your local machine eg. with
git clone https://github.com/my-username/my-awesome-extension/
- Run
npm install
to install all required dependencies - Run
npm run build
The build step will create the distribution
folder, this folder will contain the generated extension.
Using web-ext is recommended for automatic reloading and running in a dedicated browser instance. Alternatively you can load the extension manually (see below).
- Run
npm run watch
to watch for file changes and build continuously - Run
npm install --global web-ext
(only only for the first time) - In another terminal, run
web-ext run -t chromium
- Check that the extension is loaded by opening the extension options (in Firefox or in Chrome).
You can also load the extension manually in Chrome or Firefox.
The extension doesn't target any specific ECMAScript environment or provide any transpiling by default. The extensions output will be the same ECMAScript you write. This allows us to always target the latest browser version, which is a good practice you should be following.
Based on browser-extension-template by fragrante
This browser extension template is released under the GNU General Public License version 3.0 (GPL-3.0) and mentioned below.