RIN Donors name glow

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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 });
})();