Fix Patches
This commit is contained in:
parent
77cf82dc6d
commit
0ba7a85cb9
3 changed files with 9 additions and 7 deletions
|
|
@ -37,6 +37,12 @@ const settings = definePluginSettings({
|
|||
default: true,
|
||||
restartNeeded: true
|
||||
},
|
||||
enableSpeakingIndicators: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Enable speaking indicators",
|
||||
default: true,
|
||||
restartNeeded: true
|
||||
},
|
||||
enableAdvancedSignals: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Enable advanced clip signals (auto-clip triggers)",
|
||||
|
|
@ -101,8 +107,8 @@ export default definePlugin({
|
|||
{
|
||||
find: "2026-03-clips-experiment",
|
||||
replacement: {
|
||||
match: /defaultConfig:\{enableClips:!\d,ignorePlatformRestriction:!\d,showClipsHeaderEntrypoint:!\d,enableScreenshotKeybind:!\d,enableVoiceOnlyClips:!\d,enableAdvancedSignals:!\d\}/,
|
||||
replace: "defaultConfig:{enableClips:!0,ignorePlatformRestriction:$self.settings.store.ignorePlatformRestriction,showClipsHeaderEntrypoint:!0,enableScreenshotKeybind:$self.settings.store.enableScreenshotKeybind,enableVoiceOnlyClips:$self.settings.store.enableVoiceOnlyClips,enableAdvancedSignals:$self.settings.store.enableAdvancedSignals}"
|
||||
match: /defaultConfig:\{enableClips:!\d,ignorePlatformRestriction:!\d,enableScreenshotKeybind:!\d,enableVoiceOnlyClips:!\d,enableSpeakingIndicators:!\d,enableAdvancedSignals:!\d\}/,
|
||||
replace: "defaultConfig:{enableClips:!0,ignorePlatformRestriction:$self.settings.store.ignorePlatformRestriction,enableScreenshotKeybind:$self.settings.store.enableScreenshotKeybind,enableVoiceOnlyClips:$self.settings.store.enableVoiceOnlyClips,enableSpeakingIndicators:$self.settings.store.enableSpeakingIndicators,enableAdvancedSignals:$self.settings.store.enableAdvancedSignals}"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "#{intl::STATUS_MENU_LABEL}",
|
||||
replacement: {
|
||||
match: /(,\{onClose:\i\}\))\]/,
|
||||
match: /(,\{onClose:\i,popoutContainerRef:\i\}\))\]/,
|
||||
replace: "$1,$self.render()]"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -112,10 +112,6 @@ export default definePlugin({
|
|||
{
|
||||
find: "#{intl::PREMIUM_UPSELL_PROFILE_AVATAR_DECO_INLINE_UPSELL_DESCRIPTION}",
|
||||
replacement: [
|
||||
{
|
||||
match: /(#{intl::PREMIUM_UPSELL_PROFILE_AVATAR_DECO_INLINE_UPSELL_DESCRIPTION}.+?return null!=(\i)&&\()(null==\i)/,
|
||||
replace: (_, rest, avatarDecoration, hasPurchase) => `${rest}(${avatarDecoration}.skuId!==$self.SKU_ID&&${avatarDecoration}.skuId!==$self.RAW_SKU_ID&&${hasPurchase})`
|
||||
},
|
||||
{
|
||||
match: /(?<==)\i=>{let{user:\i,guildId:\i,avatarDecoration:/,
|
||||
replace: "$self.AvatarDecorationModalPreview=$&"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue