Fix Broken Patches

This commit is contained in:
thororen 2026-09-19 10:53:03 -04:00
parent 3ac2b24971
commit 3701c476fb
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -150,7 +150,7 @@ export default definePlugin({
}
},
{
find: '[role="tab"][aria-disabled="false"]',
find: ".getLastFocusableElement()}",
predicate: () => settings.store.exportContacts,
replacement: {
match: /("aria-label":(\i).{0,25}children:null!=\i)\?(this\.renderChildren\(\i\)):null/,

View file

@ -323,9 +323,9 @@ export default definePlugin({
},
// forces an early return on the file size limit nitro upsell modal
{
find: "#{intl::tRuxk9::raw}",
find: "#{intl::UPLOAD_AREA_TOO_LARGE_HELP_PREMIUM_TIER_1}",
replacement: {
match: /(?<=MAX_FILE_SIZE_250_MB.{0,250})Array\.from\(\i\)\.some/,
match: /(?<=#{intl::UPLOAD_AREA_TOO_LARGE_HELP}.{0,250})Array\.from\(\i\)\.some/,
replace: "$self.shouldBypassDiscordUploadSizeCheck()?false:$&"
}
},

View file

@ -141,7 +141,7 @@ export default definePlugin({
{
find: "#{intl::STATUS_MENU_LABEL}",
replacement: {
match: /(popoutContainerRef:\i\}\))(?=\])/,
match: /(popoutContainerRef:\i,forceOpen:\i\}\))(?=\])/,
replace: "$1,$self.render()"
}
},