Gartic chat with avatars

Adds avatars to the chat.

// ==UserScript==
// @name        Gartic chat with avatars
// @namespace   Violentmonkey Scripts
// @description Adds avatars to the chat.
// @icon        https://gartic.io/favicon.ico
// @match       *://gartic.io/*
// @license     Mit
// @version     1.0.1
// @grant       GM_addStyle
// @author      Mops
// ==/UserScript==

GM_addStyle(`
#screenRoom .ctt #interaction #chat .history .msg {
  --avatar-size: 24px;
}

#screenRoom .ctt #interaction #chat .history .msg .avatar {
  display: block !important;
  width: var(--avatar-size);
  height: var(--avatar-size);
  background-size: contain;
}

#screenRoom .ctt #interaction #chat .history .msg:has(.avatar) {
  display: grid;
  grid-template-columns: var(--avatar-size) auto;
  gap: 5px;
}
`)