A simple browser extension to visually tag websites with customizable colored labels. Helps distinguish between different environments (e.g., dev, staging, prod) or similar-looking sites.
- Adds a customizable colored tag to configured web pages.
- Globally enable/disable the extension.
- Enable/disable tags on a per-domain basis.
- Extensive Customization (per domain):
- Label: Set custom text (e.g., DEV, STAGE).
- Position: Choose corner (top-left, top-right, bottom-left, bottom-right).
- Shape: Select shape (rectangle, pill, circle).
- Size: Define width and height.
- Opacity: Control tag transparency.
- Font: Customize family (optional), size, weight, and color.
- Background: Set solid color or apply linear gradients.
- Border: Configure width, style, color, and radius.
- Effects: Add entrance animations (fade-in, slide-in) and hover effects (move-opposite-corner, change-opacity, grow).
- Automatic default color generation based on domain name.
- Automatic default label generation (first 2 letters of domain).
- Dark/Light mode support for the popup configuration.
- Settings are synced across devices (if browser sync is enabled).
- Option to reset settings per-site or globally.
- Install the extension.
- Click the extension icon in your browser toolbar to open the configuration popup.
- The popup shows settings for the current website you are visiting.
- Enable Tag for this Site: Check this box to activate the tag for the current domain.
- Customize: Expand the sections (General, Font, Border, Effects) to configure:
- Label, Position, Shape, Size, Opacity.
- Font Size, Weight, Color.
- Background Color and Gradient options.
- Border Width, Style, Color, Radius.
- Entrance Animation and Hover Effect.
- Click Save Site Settings.
- The tag should now appear on the website (you might need to refresh the page).
- Use the Global Settings toggle to turn the entire extension on or off.
- Manage all your configured sites under the Configured Sites section.
- Use the Reset buttons carefully!
- Clone the repository.
- Load the extension in your browser (usually via
chrome://extensions/orabout:debuggingand selecting "Load Unpacked"). - Make changes to the code.
- Reload the extension in your browser to see the changes.
manifest.json: Extension configuration.icons/: Extension icons.src/background/background.js: Background service worker (manages state, storage, communication).src/content/content.js: Injected into web pages to display the tag.src/content/content.css: Styles for the injected tag.src/popup/popup.html: HTML structure for the configuration popup.src/popup/popup.css: Styles for the popup (including light/dark themes).src/popup/popup.js: JavaScript logic for the popup UI.src/common/utils.js: Shared utility functions (settings management, defaults, etc.).README.md: This file.