This commit is contained in:
thororen1234 2024-10-16 22:23:12 -04:00
parent 7ed696c742
commit ba37eec5eb
2 changed files with 3 additions and 3 deletions

View file

@ -189,8 +189,8 @@ export default definePlugin({
find: "PrivateChannel.renderAvatar", find: "PrivateChannel.renderAvatar",
replacement: { replacement: {
// horror but it works // horror but it works
match: /function\(\i,(\i),\i\){.*,\[\i,\i,\i\]\);/, match: /(function\(\i,(\i),\i\){.*)(return \i\.isMultiUserDM\(\))/,
replace: "$&if($1.rawRecipients[0] != null){if($1.rawRecipients[0].id != null){if($self.shouldHideUser($1.rawRecipients[0].id)) return null;}}" replace: "$1if($2.rawRecipients[0] != null){if($2.rawRecipients[0].id != null){if($self.shouldHideUser($2.rawRecipients[0].id)) return null;}}$3"
} }
}, },

View file

@ -138,7 +138,7 @@ export default definePlugin({
} }
}, },
{ {
find: "Messages.STATUS_MENU_LABEL", find: /"aria-label":.{0,3}\.Messages.STATUS_MENU_LABEL/,
replacement: { replacement: {
match: /!\i&&(.{0,15}\i\.Fragment.{0,55}null==(\i).{0,200}customEmojiPlaceholder\}\),onClick:([^}]+}))/, match: /!\i&&(.{0,15}\i\.Fragment.{0,55}null==(\i).{0,200}customEmojiPlaceholder\}\),onClick:([^}]+}))/,
replace: "$self.render($2, $3),false&&$1" replace: "$self.render($2, $3),false&&$1"