煎蛋彩色名字

彩色名字

// ==UserScript==
// @name         煎蛋彩色名字
// @version      1.0
// @icon         http://cdn.jandan.net/static/img/favicon.ico
// @description  彩色名字
// @author       kasusa
// @match        http*://jandan.net/*
// @match        http*://i.jandan.net/*
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_deleteValue
// @grant        GM_addStyle
// @grant        GM_registerMenuCommand
// @namespace https://gf.qytechs.cn/users/734613
// ==/UserScript==

(function() {

    var username = respond.textContent.split(',')[0];
    const style = document.createElement('style');
    style.textContent = `
    .rainbow-text {
        width: 200%;
        background-color: #4158D0;
        background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);

        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% 100%;
        animation: maskedAnimation 10s infinite linear;
    }

    @keyframes maskedAnimation {
        0% {
            background-position: 0 0;
        }

        50% {
            background-position: 100% 0;
        }

        100% {
            background-position: 0 0;
        }
    }

`;
    document.head.appendChild(style);
    document.querySelectorAll("strong").forEach(element => {
        if (element.textContent.trim() === username) {
            element.classList.add('rainbow-text');
        }});

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址