Browser Extensions
Augment your browser sessions with your own Chrome extensions.
For applications requiring enhanced functional capabilities, providing your own Chrome extension is a great option. With Browserbase, using extensions is easy.
Sample Extension
Here’s a simple example extension that modifies page titles. It consists of two files:
You can download this sample extension
here. The
extension must be in a .zip
file format with a manifest.json
at the root.
The file must be smaller than 4.5 MB.
Upload Your Extension
Once you have your extension files zipped up, you can upload it using our SDK:
Create a Session with Your Extension
To use your extension, create a new session with the extension enabled:
Starting a new session with an extension can increase the session creation time. The browser must be restarted to load the extension, which itself has nonzero load time.
Verify the Extension
To verify your extension is working:
- Connect to your session using Playwright or Selenium
- Navigate to a page where your extension should be active
- Check for the expected modifications or behaviors
For the sample extension above, navigate to https://www.sfmoma.org and verify that the page title has been modified with the additional text.