into this: on front pages and on posts.
Community 🞚
Since version 0.6, the Community user also gets its own icon:
and works in reviews too.
Should work with any user script manager with any of the major browsers.
Tested using TamperMonkeyTampermonkey with Opera.
// ==UserScript==
// @name Stack Moderators & Staff
// @namespace scratte-fiddlings
// @version 0.5
// @description Indicate less that a user is moderator or staff
// @author Scratte (https://stackoverflow.com/users/12695027)
// @include https://meta.stackoverflow.com*
// @exclude https://meta.stackoverflow.com/users*
// @include https://meta.stackexchange.com*
// @exclude https://meta.stackexchange.com/users*
// @icon https://www.google.com/s2/favicons?domain=stackexchange.com
// @grant none
// ==/UserScript==
(function(win, doc) {
'use strict';
doc.addEventListener('readystatechange', () => {
swap();
});
$(doc) // needed to include comments using "Show X more comments"
.ajaxComplete((event, request, settings) => {
swap();
});
function swap() {
doc.querySelectorAll(".s-badge__moderator")
.forEach(element => {
element.className = "";
element.textContent = "♦";
element.style.fontSize = "125%";
element.style.color = "#0077cc";
element.previousElementSibling?.classList.add("mr2");
});
doc.querySelectorAll(".s-badge__staff")
.forEach(element => {
element.className = "";
element.textContent = "";
element.title = "Stack Exchange Inc Employee";
element.append(Svg.LogoGlyphXxs().get(0));
element.style.color = "var(--orange-400)";
});
}
})(window, document);
Download
It is set to workworks on Metaboth Stack Overflow (main & meta) and on Meta Stack Exchange. But it can easily be expanded to any other meta site by adding two lines to the user script header:
// @include https/^https://meta(?:meta\.<siteurl>*)?<siteurl>/
// @exclude https/^https://meta(?:meta\.)?<siteurl>/users*users/
// @include https/^https://meta(?:meta\.superuser)?superuser\.com*com/
// @exclude https/^https://meta(?:meta\.superuser)?superuser\.com/users*users/