HamaColor is a browser extension that changes the color of the screen edges based on user-defined URL patterns. This helps users visually distinguish browser tabs or environments (e.g., development, staging, production) quickly.
- Customize screen edge color based on URL patterns.
- Define multiple rules for different websites.
- Simple and intuitive rule format (pattern,color).
- Lightweight and unobtrusive.
- Go to the HamaColor page on the Chrome Web Store: https://chromewebstore.google.com/detail/hamacolor/ciofpkbhollmjpaobphhjdngaohglpgp?pli=1
- Click "Add to Chrome".
- Clone this repository:
git clone https://github.com/hamakou108/hama-color.git
- Open Chrome and navigate to
chrome://extensions/
. - Enable "Developer mode" using the toggle switch in the top right corner.
- Click the "Load unpacked" button.
- Select the
dist
directory within the cloned repository. (Note: you might need to runyarn build
first to generate thedist
directory).
Rules are defined as a list of comma-separated pairs of URL patterns and colors. Each rule should be on a new line.
-
Click on the HamaColor extension icon in your browser toolbar.
-
The popup will show a textarea for your rules.
-
Enter your rules in the following format:
<URL_pattern>,<color>
<URL_pattern>
: A string that will be matched against the current tab's URL. This can be a full URL or a partial match (e.g., a domain name or a specific path).<color>
: Any valid CSS color name (e.g.,red
,blue
,green
) or hex code (e.g.,#FF0000
,#00FF00
).
Example:
github.com,red developer.mozilla.org,#0000FF localhost:3000,rgba(0,255,0,0.5)
-
Click "Save". The extension will apply the color to the edges of the screen for any tab whose URL matches one of the defined patterns. The first matching pattern will be used.
Contributions are welcome! If you have any ideas, suggestions, or find a bug, please open an issue on the GitHub issue tracker.
When contributing code, please ensure you:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Write clear and concise commit messages.
- Ensure your code lints correctly (
yarn lint
). - Add tests for new functionality if applicable (
yarn test
). - Submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.