aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/vcDoubleClick.ts
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-02-15 22:00:09 -0300
committerGitHub <noreply@github.com>2023-02-16 02:00:09 +0100
commit60ccd8cc25d86f10a166a31faf1cb996deb74621 (patch)
treea9a8858edd023b8c78b6190d0ed8c87a3aafc45a /src/plugins/vcDoubleClick.ts
parent5c1519156b5cd7e513fd1bfbc71ed263858c5885 (diff)
downloadVencord-60ccd8cc25d86f10a166a31faf1cb996deb74621.tar.gz
Vencord-60ccd8cc25d86f10a166a31faf1cb996deb74621.tar.bz2
Vencord-60ccd8cc25d86f10a166a31faf1cb996deb74621.zip
Various plugin fixes (#492)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/vcDoubleClick.ts')
-rw-r--r--src/plugins/vcDoubleClick.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts
index 39b8a05..64c676c 100644
--- a/src/plugins/vcDoubleClick.ts
+++ b/src/plugins/vcDoubleClick.ts
@@ -48,10 +48,10 @@ export default definePlugin({
},
{
// channel mentions
- find: 'className:"channelMention",iconType:(',
+ find: ".EMOJI_IN_MESSAGE_HOVER",
replacement: {
- match: /onClick:(.{1,3}),/,
- replace: "onClick:(_vcEv)=>(_vcEv.detail>=2||_vcEv.target.className.includes('MentionText'))&&($1)(),",
+ match: /onClick:(\i)(?=,.{0,30}className:"channelMention")/,
+ replace: "onClick:(_vcEv)=>(_vcEv.detail>=2||_vcEv.target.className.includes('MentionText'))&&($1)()",
}
}
],