A simple Chrome extension template with a popup interface, background service worker, and local storage functionality.
- Popup Interface: Clean, modern popup with interactive elements
- Click Counter: Track and store click counts using Chrome's storage API
- Toggle Functionality: Enable/disable the extension with a toggle switch
- Background Service Worker: Handles extension lifecycle and messaging
- Persistent Storage: Saves settings and data across browser sessions
- Modern UI: Styled with CSS gradients and smooth animations
├── manifest.json # Extension configuration and permissions
├── background.js # Service worker for background tasks
├── popup.html # Popup interface HTML
├── popup.js # Popup functionality and interactions
├── popup.css # Popup styling
├── icon16.png # 16x16 extension icon
├── icon32.png # 32x32 extension icon
├── icon48.png # 48x48 extension icon
├── icon128.png # 128x128 extension icon
└── README.md # This file
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select this directory
- The extension will appear in your Chrome toolbar
- Click the extension icon in your Chrome toolbar to open the popup
- Use the "Click Me!" button to increment the counter
- Toggle the extension on/off using the switch at the bottom
- Clear the click count using the "Clear Count" button
The extension uses these permissions:
activeTab: Access to the currently active tabstorage: Store and retrieve data locally
The extension stores:
clickCount: Number of button clicksextensionEnabled: Whether the extension is enabled
- Modify
popup.htmlto change the interface layout - Update
popup.cssto customize the styling - Edit
popup.jsto add new functionality - Adjust
background.jsfor background tasks - Update
manifest.jsonto add permissions or change settings
This extension is built using Manifest V3 and is compatible with:
- Chrome 88+
- Edge 88+
- Other Chromium-based browsers
This is a basic template for educational purposes. Feel free to modify and use as needed.