A browser-extension template powered by Svelte
manifest.json
: "name", "short_name", "description", and "author"public/
directoryinitialize
function in src/main.ts
For examples of using the WebExtension API and browser
, see:
src/main.ts > initialize
src/utils.ts > checkHistory
There are two manifest.json
files in this project to give you the choice of which manifest_version
that you want to use for your extension. As of September 2021, Chrome/Chromium-powered browsers support manifest v3 but Firefox does not. I have set the default to v2 to promote cross-browser extensions, but I will change that to v3 once Firefox adds support. That could be as early as early 2022.
Copyright © 2021 Sean McPherson