Patch Fixes
This commit is contained in:
parent
8eb69afd4b
commit
aa98546bea
3 changed files with 13 additions and 12 deletions
|
|
@ -80,8 +80,8 @@ export default definePlugin({
|
|||
{
|
||||
find: "(this,\"handleMessageClick\"",
|
||||
replacement: {
|
||||
match: /(?<=(\i)\.isSearchHit\));(?=null!=(\i))/,
|
||||
replace: ";if ($1.ctrlKey) return $self.open($2);"
|
||||
match: /(?<=(\i)\.preventDefault.*?)(?=null!=(\i))/,
|
||||
replace: "if ($1.ctrlKey) return $self.open($2);"
|
||||
}
|
||||
},
|
||||
// prevent issues with the pins/inbox popouts being too tall
|
||||
|
|
|
|||
|
|
@ -167,7 +167,6 @@ function makeBypassPatches(): Omit<Patch, "plugin"> {
|
|||
{ func: "canUseHighVideoUploadQuality", predicate: () => settings.store.enableStreamQualityBypass },
|
||||
{ func: "canStreamQuality", predicate: () => settings.store.enableStreamQualityBypass },
|
||||
{ func: "canUseClientThemes" },
|
||||
{ func: "canUseCustomNotificationSounds" },
|
||||
{ func: "canUsePremiumAppIcons" }
|
||||
];
|
||||
|
||||
|
|
@ -184,7 +183,7 @@ function makeBypassPatches(): Omit<Patch, "plugin"> {
|
|||
export default definePlugin({
|
||||
name: "FakeNitro",
|
||||
authors: [Devs.Arjix, Devs.D3SOX, Devs.Ven, Devs.fawn, Devs.captain, Devs.Nuckyz, Devs.AutumnVN],
|
||||
description: "Allows you to stream in nitro quality, send fake emojis/stickers, use client themes and custom Discord notifications.",
|
||||
description: "Allows you to stream in nitro quality, send fake emojis/stickers, and use client themes",
|
||||
dependencies: ["MessageEventsAPI"],
|
||||
|
||||
settings,
|
||||
|
|
|
|||
|
|
@ -46,14 +46,16 @@ export default definePlugin({
|
|||
settings,
|
||||
patches: [{
|
||||
find: ".getDesktopType()===",
|
||||
replacement: [{
|
||||
match: /(\i\.\i\.getDesktopType\(\)===\i\.\i\.NEVER)\)/,
|
||||
replace: "$&if(!$self.isPrivateChannelRead(arguments[0]?.message))return;else "
|
||||
},
|
||||
{
|
||||
match: /sound:(\i\?\i:void 0,soundpack:\i,volume:\i,onClick)/,
|
||||
replace: "sound:!$self.isPrivateChannelRead(arguments[0]?.message)?undefined:$1"
|
||||
}]
|
||||
replacement: [
|
||||
{
|
||||
match: /(\i\.\i\.getDesktopType\(\)===\i\.\i\.NEVER)\)/,
|
||||
replace: "$&if(!$self.isPrivateChannelRead(arguments[0]?.message))return;else "
|
||||
},
|
||||
{
|
||||
match: /sound:(\i\?\i:void 0,volume:\i,onClick)/,
|
||||
replace: "sound:!$self.isPrivateChannelRead(arguments[0]?.message)?undefined:$1"
|
||||
}
|
||||
]
|
||||
}],
|
||||
isPrivateChannelRead(message: MessageJSON) {
|
||||
const ignoreList = settings.store.ignoreUsers.split(", ").filter(Boolean);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue