While you typically install the Web Monetization extension directly from your browser's extension store, you might need to install a different build for development or testing. This guide explains how to temporarily install the extension from its source code or from pre-built ZIP files.
To temporarily install the extension from source, follow these steps:
-
Build the extension: Run
pnpm build chromefor a production build, orpnpm dev chromefor a development build. -
Open the Extensions page: In Chrome, click the three dots (⋮) in the top-right corner, then navigate to Extensions > Manage extensions.
Alternatively, open
chrome://extensionsin the address bar. -
Enable Developer mode: Toggle the Developer mode switch in the top-right corner of the Extensions page.
-
Load the unpacked extension:
- Click the Load unpacked button that appears in the top-left.
- Browse to the
dist/chromefolder (for production builds) ordev/chromefolder (for development builds) and select it. This folder contains themanifest.jsonfile.
The UI might be slightly different for different browsers (Chrome, Opera, Edge, Brave, Arc, Vivaldi etc.), but the process is the same.
-
Build the extension: Run
pnpm build firefoxfor a production build, orpnpm dev firefoxfor a development build. -
Open Firefox's Add-ons page:
- Click the three horizontal lines (≡) in the top-right corner, then choose Add-ons and themes.
- Navigate to Debug Add-ons: On the Add-ons page, click the gear icon (⚙️) and select Debug Add-ons.
Alternatively, open
about:debugging#/runtime/this-firefoxin the address bar. -
Load temporary add-on:
- Expand the Temporary Extensions section.
- Click the Load Temporary Add-on... button.
- Browse to the
dist/firefoxfolder (for production builds) ordev/firefoxfolder (for development builds), and select themanifest.jsonfile inside.
-
Build the extension: Run
pnpm build safarifor a production build, orpnpm dev safarifor a development build. -
Enable the Developer Tab:
- Open Safari > Settings....
- Go to the Developer tab. If you don't see it, go to the Advanced tab and check "Show features for web developers."
-
Allow Unsigned Extensions (if prompted) [docs]:
- When you attempt to add a temporary extension, Safari may present an authentication prompt for unsigned extensions. Respond to this prompt.
- Alternatively, you can preemptively enable "Allow unsigned extensions" from the Developer tab in Safari Settings. Note that this setting resets when you quit Safari.
-
Add Temporary Extension:
- In the Developer tab (in settings), click "Add Temporary Extension..."
- Locate and select the folder containing
manifest.json(dist/safarifor production builds,dev/safarifor development builds).
Detailed instructions are available at Firefox Extension Workshop.
- Build the extension: Run
pnpm build firefoxfor a production build, orpnpm dev firefoxfor a development build. - Enable USB debugging on your Android device: This is usually found in Settings > Developer options > USB debugging (docs).
- Enable USB debugging in Firefox Android:
- Open Firefox on your Android device, go to Settings > Advanced, and
- Enable Remote debugging via USB.
- You may need to restart Firefox after enabling this option.
- Connect your Android device to your computer via a USB cable..
- Install
web-extandadb. - Find your Android device ID:
$ adb devices # List of devices attached # 001793554000841 device # ^YOUR_DEVICE_ID
- Run
web-ext runwith the source beingdist/firefoxdirectory (for production builds) ordev/firefoxdirectory (for development builds); and target asfirefox-android.web-ext run -s /path/to/ext-with-manifest-file -t firefox-android --adb-device=YOUR_DEVICE_ID # web-ext run -s ./dev/firefox/ -t firefox-android --adb-device=001793554000841 - The extension should now be installed and running in Firefox Android.
- You can open
about:debuggingpage on your computer's Firefox, and Connect to your Android device and inspect the extension. - On your Android device, you can see the extension listed in under Menu > Extensions. You can access the extension's UI page from there.
- You can open
You can also install pre-built versions, such as nightly builds or any .zip files from the releases page. These are ready to use and don't require a development environment.
The installation process is similar to installing from source, with one key difference:
- Instead of selecting a
distordevfolder, you'll load the relevant.zipfile. - For Chromium-based browsers and Firefox on Android, you must first extract (unzip) the
.zipfile before loading it using the Load unpacked option. For Firefox (desktop), you can select the.zipfile directly.