A Chrome extension that customizes the Google Cloud Platform Console banner background color based on the active project ID. Perfect for teams managing multiple GCP projects - quickly identify which project you're working in by the banner color!
- 🎨 Map project IDs to specific banner colors
- 🔄 Automatically applies colors when switching projects
- ⚡ Easy-to-use popup interface for managing color rules
- 🚀 Real-time updates without page reload
[Link will be added after publication]
- Clone this repository or download as ZIP
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Click "Load unpacked"
- Select the extension directory
- Click the extension icon in your Chrome toolbar
- Enter a Project ID (e.g.,
production,staging) - Select a color using the color picker
- Click "Save Rule"
- Navigate to the GCP Console - the banner will automatically change color when you switch to that project
The extension uses a content script that:
- Monitors the GCP Console page for project changes
- Reads the active project ID from the page DOM
- Applies the user-configured banner color based on the project ID
- Stores color mappings locally using Chrome's storage API
This extension does not collect, transmit, or store any user data on external servers. All project-to-color mappings are stored locally on your device. See privacy-policy.html for more details.
- Storage: Used to store project-to-color mappings locally
The extension uses a content script that runs on GCP Console pages to read the project ID and apply banner colors. This is declared in the manifest and does not require additional host permissions.
├── manifest.json # Extension configuration
├── popup.html # Settings UI
├── popup.js # Settings logic
├── content.js # Main script that applies colors
├── icon*.png # Extension icons
└── privacy-policy.html # Privacy policy
To create a distribution ZIP file:
zip -r gcp-project-colorizer.zip manifest.json popup.html popup.js content.js icon*.pngThis project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues or have feature requests, please open an issue on GitHub.