RIN Donors name glow

Makes cs.rin.ru "Donors" user rank/group glow in yellow.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         RIN Donors name glow
// @version      2.1
// @description  Makes cs.rin.ru "Donors" user rank/group glow in yellow.
// @author       Guess
// @match        https://cs.rin.ru/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=cs.rin.ru
// @grant        none
// @namespace https://greasyfork.org/users/1122886
// ==/UserScript==

(function() {
    'use strict';

    const style = document.createElement('style');
    style.textContent = `
@keyframes yellowglow{0%{text-shadow:0 0 5px #bf9f00}50%{text-shadow:0 0 20px #bf9f00}100%{text-shadow:0 0 5px #bf9f00}}.yellowtxtglow{animation:yellowglow 2s infinite}
    `;
    document.head.appendChild(style);
    function glowstuff() {
        const elements = document.querySelectorAll('*[style*="color: #BF9F00"]');
        elements.forEach(element => {
            element.classList.add('yellowtxtglow');
        });
    }
    glowstuff();
    const observer = new MutationObserver(glowstuff);
    observer.observe(document.body, { childList: true, subtree: true });
})();