This commit is contained in:
thororen 2024-04-30 16:57:19 -04:00
parent 073f4136fb
commit 8a54732ecf
2 changed files with 3 additions and 2 deletions

View file

@ -81,7 +81,7 @@ const buildCss = () => {
width: 2px; width: 2px;
} }
:is(${elements}) [id^='message-accessories'] > *:not(.vc-hide-message-accessory), :is(${elements}) [id^='message-accessories'] > *:not(.vc-hide-message-accessory),
:is(${elements}) [id^='message-content'] > * { :is(${elements}) [id^='message-content']:not([class^='repliedTextContent']) > * {
display: none !important; display: none !important;
} }
:is(${elements}) [id^='message-content']:empty { :is(${elements}) [id^='message-content']:empty {
@ -130,6 +130,7 @@ export default definePlugin({
name: "HideMessage", name: "HideMessage",
description: "Adds a context menu option to hide messages", description: "Adds a context menu option to hide messages",
authors: [EquicordDevs.Hanzy], authors: [EquicordDevs.Hanzy],
dependencies: ["MessageAccessoriesAPI", "MessagePopoverAPI"],
settings, settings,
contextMenus: { contextMenus: {

View file

@ -620,7 +620,7 @@ export default definePlugin({
{ {
find: ".removeMosaicItemHoverButton", find: ".removeMosaicItemHoverButton",
replacement: { replacement: {
match: /(\i=(\i)=>{)(.{1,3550}isSingleMosaicItem)/, match: /(\i=(\i)=>{)(.{1,3600}isSingleMosaicItem)/,
replace: "$1 let forceUpdate=Vencord.Util.useForceUpdater();$self.patchAttachments($2,forceUpdate);$3" replace: "$1 let forceUpdate=Vencord.Util.useForceUpdater();$self.patchAttachments($2,forceUpdate);$3"
} }
}, },