您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
彩色名字
// ==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://greasyfork.org/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'); }}); })();