fix: fakeProfileThemes (#1837)

This commit is contained in:
Jack 2023-10-25 09:45:19 -04:00 committed by V
parent 4d8e4e62ca
commit cf5e93ee52

View file

@ -87,15 +87,15 @@ export default definePlugin({
authors: [Devs.Alyxia, Devs.Remty], authors: [Devs.Alyxia, Devs.Remty],
patches: [ patches: [
{ {
find: "getUserProfile=", find: "UserProfileStore",
replacement: { replacement: {
match: /(?<=getUserProfile=function\(\i\){return )(\i\[\i\])/, match: /(?<=getUserProfile\(\i\){return )(\i\[\i\])/,
replace: "$self.colorDecodeHook($1)" replace: "$self.colorDecodeHook($1)"
} }
}, { }, {
find: ".USER_SETTINGS_PROFILE_THEME_ACCENT", find: ".USER_SETTINGS_PROFILE_THEME_ACCENT",
replacement: { replacement: {
match: /RESET_PROFILE_THEME}\)(?<=},color:(\i).+?},color:(\i).+?)/, match: /RESET_PROFILE_THEME}\)(?<=color:(\i),.{0,500}?color:(\i),.{0,500}?)/,
replace: "$&,$self.addCopy3y3Button({primary:$1,accent:$2})" replace: "$&,$self.addCopy3y3Button({primary:$1,accent:$2})"
} }
} }