mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 05:42:55 -04:00
feat(alwaysAnimate): animate role gradients (#265)
This commit is contained in:
parent
ba66e4f8e8
commit
4fa16ce3b4
1 changed files with 14 additions and 0 deletions
|
@ -54,6 +54,20 @@ export default definePlugin({
|
|||
match: /(\.headerContent.+?guildBanner:\i,animate:)\i/,
|
||||
replace: "$1!0"
|
||||
}
|
||||
},
|
||||
{
|
||||
// Role Gradients
|
||||
find: "animateGradient:",
|
||||
all: true,
|
||||
noWarn: true,
|
||||
replacement: {
|
||||
match: /animateGradient:.+?([,}].*?\))/g,
|
||||
replace: (m, rest) => {
|
||||
const destructuringMatch = rest.match(/}=.+/);
|
||||
if (destructuringMatch == null) return `animateGradient:!0${rest}`;
|
||||
return m;
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue