CSS to hide unseen per TL aka. group

Well, I have previously developed a theme component that can insert css for groups, TLs or users.

I’m not sure if someone on meta has developed a similar component before… but if not, I’ll post it

Upd: The general principle is like this, considering my implementation is very strange… I won’t post it

<script type="text/discourse-plugin" version="0.8">
try {
    let your_tl = -1; // -1 means anon
    if (api.getCurrentUser()?.trust_level) {
        your_tl = api.getCurrentUser().trust_level;
    }
    if (your_tl < 1) {
        var style = document.createElement('style');
        style.innerHTML = '#tl1-only{display:none;}'; //Or some else
        document.head.appendChild(style);
    }
} catch(err) {
    // ...
}
</script>