Another part of the EWStats script goes to its separate repository. It's Custom Highlight this time.
Here's the link for the TamperMonkey:
The new thing is, that now there are 3 separate colors for highlighting. All three are customizable.
How does it look shows the picture below.
There are 3 branches highlighted with three different colors. If you click the H button to show all cells with some highlighting, there are now 3 separate counters in the first column - one for each color.
To select, which color you want to use, just open the Settings menu and choose appropriate radio button:
To change the color itself, click on the corresponding coloured rectangle, select a color and click Choose in the popup window.
The cubes, which you had selected before installing the script (those from the EWStats Custom Highlight option) will be translated to Highlight Color 1.
Each cube can be highlighted using one, two or each three colors.
When you use the B button to unhighlight a cube and maybe its relatives, only the cubes highlighted with the currently selected color will be unhighlighted.
To remove all highlighted cubes from a cell, click the H button and click Remove in appropriate row.
IMPORTANT: If you want to use the new script and have also installed the EWStats script, upgrade EWStats to version 2.5.1 (or higher). Otherwise the list available under the H button won't be available without some "hacking" in the console or in the script.
Only the Highlight Color 1 can be covered by the built-in highlight, e.g. if you have custom highlighted a branch with the Highlight Color 1 and then click the Highlight Children button, the built-in highlighting will be visible. The other two colors will cover the built-in highlighting.
In other words, here's the priority of the highlighting:
1. Highlight Color 3 (always visible)
2. Highlight Color 2 (visible if a cube isn't also highlighted using Highlight Color 3)
3. Built in Highlight
4. Highlight Color 1 (can be covered by Highlight Color 3, Highlight Color 2 and built-in Highlight).
I can add more custom colors, but I don't think it will be ever a need for that.