Allow net rows to have custom styling
E.g., I would like the colour of the URL in the net row to vary based on one of, or a combination of, the following (not an exhaustive list, but representative):
- URL text. If URL contains "my-special-url" then text colour is red for example.
- resource
Content-Type. I wanttext/cssto be green andtext/htmlto be blue for example. - resource
Content-Encoding, e.g. if gzipped I want the row to be orange for example. - resource size. E.g. I may want 'large' resources in red.
- cache headers. E.g. I may want resources with no cache headers in red.
The advantage here is to give the viewer of the HAR a quick visual cue as to the 'type' or 'status' of each row.
This request is not strictly restricted to the colour of the URL text, but that is the primary request. I may want to do other CSS/classname 'decoration' to the resource row based on the resource's name/headers/content.
For the simple case, you could probably add certain CSS classes to the resource row, and allow the user to add extra CSS to see the effect. E.g. a tr.netRow could have a content-type CSS class added, e.g. tr.netRow.contentType_textCss. If I add the appropriate contentType_textCss CSS to the stylesheet then I can modify the look and feel of those rows.