Fix Experiments & GuildTagSettings

This commit is contained in:
thororen1234 2025-07-11 20:36:36 -04:00
parent 7689bbda3e
commit d0a38e3ca9
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

View file

@ -52,7 +52,7 @@ export default definePlugin({
{
find: "GuildTagCoachmark",
replacement: {
match: /return.{0,100}spacing/g,
match: /return.{0,100}shouldShow/g,
replace: "return null;$&"
},
predicate: () => settings.store.disableAdoptTagPrompt

View file

@ -145,3 +145,7 @@
unicode-bidi: plaintext;
font-weight: 500;
}
.visual-refresh .toastnotifications-notification-root {
background-color: var(--background-base-low);
}

View file

@ -103,7 +103,7 @@ export default definePlugin({
},
// Fix some tricky experiments name causing a client crash
{
match: /.getRegisteredExperiments\(\)(?<=(\i)=.+?).+?if\(null==(\i)(?=\)return null;)/,
match: /\i\.\i\)\(\)(?<=(\i)=.+?).+?if\(null==(\i)(?=\);)/,
replace: "$&||!Object.hasOwn($1,$2)"
}
]