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 less than or equal to 100 MB.Upload your extension
Once you have your extension files zipped up, you can upload it using the SDK:- Node.js
- Python
Node.js
Create a session with your extension
To use your extension, create a new session with the extension enabled:- Node.js
- Python
Node.js
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
Related guides
Browser contexts
Reuse cookies and browser state across sessions.
Create a browser session
Start a browser session and connect your automation tools.