Bolt·Prompt

Bolt Prompt: Build a Chrome Extension

When to Use This Prompt

Use this when you want a working Chrome extension quickly. Bolt generates all the files you need — just download and load as unpacked extension.

The Prompt

Build a Chrome extension that [YOUR EXTENSION PURPOSE]:

Files needed:
- manifest.json (Manifest V3)
- popup.html + popup.js (the extension popup UI)
- content.js (content script that runs on web pages)
- background.js (service worker for background tasks)
- styles.css (popup styling)

Popup UI:
- Clean interface with the extension name
- Toggle switch to enable/disable the extension
- Settings section for user preferences
- Status indicator showing current state

Content script:
- Detect relevant page elements
- Apply the extension's functionality
- Communicate with the popup via chrome.runtime messaging

Use modern JavaScript, no frameworks needed.

What to Customize

Replace [YOUR EXTENSION PURPOSE] with what your extension does. Add specific content script behaviors for your use case.

Expected Output

Complete Chrome extension with 5-6 files ready to load in Chrome. Popup UI, content script, and background worker all wired together.