@long I think I managed to do it.
https://github.com/NateDhaliwal/add-custom-icons-to-username
Note that if the user is in 2 groups where both are in the settings, the first one in the settings takes precedence.
Settings are pretty self-explanatory:
Please report back if you have any problems!
Note that this is just a proof-of-concept. I will not be maintaining this forever.



