fix FakeProfileThemes

This commit is contained in:
Vendicated 2024-04-24 05:23:50 +02:00 committed by Luna
parent 659ab8fbc5
commit 5bb9dbb1bb

View file

@ -92,8 +92,9 @@ export default definePlugin({
match: /(?<=getUserProfile\(\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_RESET_PROFILE_THEME",
replacement: { replacement: {
match: /RESET_PROFILE_THEME}\)(?<=color:(\i),.{0,500}?color:(\i),.{0,500}?)/, 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})"