由大鹅指导 @Clarke.L

已调整适配
// ==UserScript==
// @name 充电特效
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 充电特效
// @author Clarke.L
// @match https://linux.do/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const style = document.createElement('style');
style.type = 'text/css';
style.textContent = `
img.avatar[src^="/user_avatar/linux.do/keron/"],
img.avatar[src^="https://linux.do/user_avatar/linux.do/keron/"] {
width: auto;
height: $avatar-height;
position: relative !important;
border-radius: 50% !important;
box-shadow: 0 0 20px #ffd700 !important;
animation: pulse 3s ease-in-out infinite !important;
}
@keyframes pulse {
0% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.1);
opacity: 0.7;
}
100% {
transform: scale(1);
opacity: 1;
}
}
`;
document.head.appendChild(style);
})();
颜色自己改
box-shadow: 0 0 20px #ffd700 !important;
记得修改成你的id
img.avatar[src^="/user_avatar/linux.do/keron/"],
img.avatar[src^="https://linux.do/user_avatar/linux.do/keron/"]

