Fix Patches

This commit is contained in:
thororen1234 2026-01-08 20:49:19 -05:00
parent d3c8366112
commit 0038520bef
No known key found for this signature in database
3 changed files with 3 additions and 19 deletions

View file

@ -19,12 +19,6 @@ import { PluginCards } from "./pluginCards";
let clicked = false;
const settings = definePluginSettings({
disableDMContextMenu: {
type: OptionType.BOOLEAN,
description: "Disables the DM list context menu in favor of the x button",
restartNeeded: true,
default: false
},
noMirroredCamera: {
type: OptionType.BOOLEAN,
description: "Prevents the camera from being mirrored on your screen",
@ -83,16 +77,6 @@ export default definePlugin({
}
]
},
// Remove DM Context Menu
{
find: "#{intl::DM_OPTIONS}",
predicate: () => settings.store.disableDMContextMenu,
replacement: {
match: /\{dotsInsteadOfCloseButton:(\i),rearrangeContextMenu:(\i).*?autoTrackExposure:!0\}\)/,
replace: "$1=false,$2=false"
},
},
// When focused on voice channel or group chat voice call
{
find: /\i\?\i.\i.SELF_VIDEO/,

View file

@ -48,7 +48,7 @@ export default definePlugin({
settings,
patches: [
{
find: "GuildTagCoachmark",
find: "GuildTagAvailableCoachmark",
replacement: {
match: /return.{0,100}shouldShow/g,
replace: "return null;$&"

View file

@ -84,9 +84,9 @@ export default definePlugin({
// Add support for the nonce parameter to Discord's shitcode
{
find: ".REQUEST_GUILD_MEMBERS",
find: ".GUILD_SUBSCRIPTIONS_BULK,{",
replacement: {
match: /\.send\(8,{/,
match: /\.send\(\i\.\i\.REQUEST_GUILD_MEMBERS,{/,
replace: "$&nonce:arguments[1].nonce,"
}
},