fix patches for Experiments and Vencord Toolbox (#3647)

This commit is contained in:
sadan4 2025-09-04 15:59:30 -04:00 committed by GitHub
parent 77b016de36
commit 1d00ba4161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -80,7 +80,7 @@ export default definePlugin({
},
// Change top right chat toolbar button from the help one to the dev one
{
find: '"M9 3v18"',
find: '?"BACK_FORWARD_NAVIGATION":',
replacement: {
match: /hasBugReporterAccess:(\i)/,
replace: "_hasBugReporterAccess:$1=true"

View file

@ -129,9 +129,10 @@ export default definePlugin({
patches: [
{
find: '"M9 3v18"',
find: '?"BACK_FORWARD_NAVIGATION":',
replacement: {
match: /focusSectionProps:"HELP".{0,20},className:(\i\.button)\}\),/,
// TODO: (?:\.button) is for stable compat and should be removed soon:tm:
match: /focusSectionProps:"HELP".{0,20},className:(\i(?:\.button)?)\}\),/,
replace: "$& $self.renderVencordPopoutButton($1),"
}
}