Utility functions for Web Extensions
- Browsers: Chrome, Firefox, and Safari
- Manifest: v2 and v3
Sponsored by PixieBrix 🎉
npm install webext-tools
Or download the standalone bundle to include in your manifest.json
.
This package exports various utilities, just import what you need.
- doesTabExist - Checks whether a tab exists.
- getTabUrl - Get a tab or frame’s URL even with limited permissions.
- setActionPopup - Sets the popup URL (or removes the popup) depending on the current tab.
- createContextMenu - Creates context menus without pain.
addOptionsContextMenu
was moved to webext-bugs.
- webext-events - High-level events and utilities for events in Web Extensions.
- webext-base-css - Extremely minimal stylesheet/setup for Web Extensions’ options pages (also dark mode)
- webext-options-sync - Helps you manage and autosave your extension's options.
- webext-detect - Detects where the current browser extension code is being run.
- More…
MIT © Federico Brigante