AlwaysAnimate: support gradient roles (#3528)

This commit is contained in:
Lumap 2026-06-14 19:14:24 +02:00 • committed by GitHub
parent d8abc65d3c
commit 2ca831f91c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,6 +56,22 @@ export default definePlugin({
replace: "$1!0"
}
},
{
// Gradient roles in chat
find: "=!1,contentOnly:",
replacement: {
match: /animate:\i/,
replace: "animate:!0"
}
},
{
// Gradient roles in member list
find: '="left",className:',
replacement: {
match: /,animateGradient:/,
replace: ",animateGradient:!0,_oldAnimateGradient:"
}
},
{
// Nameplates
find: ".MINI_PREVIEW,[",