增强版
// ==UserScript==
// @name User Title Holographic Accent
// @version 0.1
// @description Apply holographic gradient to seed and active user titles
// @author Generated by Codex,没看错就是codex写的
// @match https://linux.do/*
// @grant GM_addStyle
// ==/UserScript==
(function () {
'use strict';
const css = `
span[class*="user-title--"] {
background: linear-gradient(135deg, #ff00ff 0%, #00ffff 25%, #ffff00 50%, #ff00ff 75%, #00ffff 100%);
background-size: 400% 400%;
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(0, 0, 0, 0);
background-clip: text;
color: transparent;
will-change: background-position;
animation: holographic 15s ease-in-out infinite;
}
@keyframes holographic {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
`;
if (typeof GM_addStyle === 'function') {
GM_addStyle(css);
} else {
const style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
}
})();
