Improvements for patches and misc stuff (#582)

This commit is contained in:
Nuckyz 2023-03-08 00:11:59 -03:00 committed by GitHub
parent 7322c3af04
commit 40395d562a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 324 additions and 282 deletions

View file

@ -41,7 +41,7 @@ export default definePlugin({
replace: "[$1, $self.PronounsChatComponent(e)]"
}
},
// Hijack the discord pronouns section (hidden without experiment) and add a wrapper around the text section
// Hijack the discord pronouns section and add a wrapper around the text section
{
find: ".Messages.BOT_PROFILE_SLASH_COMMANDS",
replacement: {
@ -49,12 +49,12 @@ export default definePlugin({
replace: "$<fullProps>&&$self.PronounsProfileWrapper($<PronounComponent>,$<pronounProps>,$<fullProps>)"
}
},
// Make pronouns experiment be enabled by default
// Force enable pronouns component ignoring the experiment value
{
find: "2022-01_pronouns",
find: ".Messages.USER_POPOUT_PRONOUNS",
replacement: {
match: "!1", // false
replace: "!0"
match: /\i\.\i\.useExperiment\({}\)\.showPronouns/,
replace: "true"
}
}
],