Main-world Content Script
Injects a small UI into every web page from both the extension and the page's own JavaScript world.
Runs on Chrome, Edge, Firefox · Manifest V3 · Surfaces: content script, background service worker · Styling: CSS · Level: intermediate
Create this project
npx extension@latest create my-content-main-world --template content-main-world
cd my-content-main-world
npm install
npm run dev
Files in this template
- extension.config.js
- src/background.js
- src/content/isolated-one.js
- src/content/isolated-two.js
- src/content/scripts.js
- src/content/styles.css
- src/content/utils/constants.js
- src/content/utils/create-badge.js
- src/images/icon.png
- src/manifest.json
Source on GitHubDocumentation
extension.devDocumentation for extension.dev