Welcome to the fast track for developing cross-browser extensions with Extension.js. Whether youβre quickly prototyping or working on full-scale development, this guide will help you get started right away.
Start development by using a sample from the Chrome Extension Samples repository. It's a great way to learn best practices and save time.
Note: Replace <sample-name>
with the sample you want to use from Chrome Extension Samples.
See the example below, where we request the page-redder sample from Google Chrome Extension Samples.
Extension.js supports a variety of browsers, including Microsoft Edge. To start an Edge-compatible extension, follow these steps:
Replace <sample-name>
with the sample you want to use.
In the example below, we request the magic8ball sample from Google Chrome Extension Samples using Edge as the target browser.
You can also adapt Mozilla Add-Ons to run on Edge:
This will fetch a Mozilla Add-On and adapt it for Edge.
Below is an example of fetching the Apply CSS sample from MDN WebExtensions Examples and running it on Edge.
tsconfig.json
file to the root of your project.package.json
.tsconfig.json
with React support will make your project ready for React and TypeScript.Start exploring browser extension development with Extension.js by creating your first extension.