aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico <nico@d3sox.me>2023-02-28 00:41:14 +0100
committerGitHub <noreply@github.com>2023-02-28 00:41:14 +0100
commitcb507babaad57d71cb34c9108c625454c6adbafd (patch)
tree2890eb99b9ac33e726bb737a2a8f6e91fc6a32ab
parent235d1141930c24b8b8dd292a836f5b6f4b622700 (diff)
downloadVencord-cb507babaad57d71cb34c9108c625454c6adbafd.tar.gz
Vencord-cb507babaad57d71cb34c9108c625454c6adbafd.tar.bz2
Vencord-cb507babaad57d71cb34c9108c625454c6adbafd.zip
fix: vcDoubleClick and revealAllSpoilers patch (#517)
Co-authored-by: Ven <vendicated@riseup.net>
-rw-r--r--src/plugins/revealAllSpoilers.ts6
-rw-r--r--src/plugins/vcDoubleClick.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/revealAllSpoilers.ts b/src/plugins/revealAllSpoilers.ts
index b508b6a..ead169f 100644
--- a/src/plugins/revealAllSpoilers.ts
+++ b/src/plugins/revealAllSpoilers.ts
@@ -30,10 +30,10 @@ export default definePlugin({
patches: [
{
- find: ".revealSpoiler=function",
+ find: ".removeObscurity=function",
replacement: {
- match: /\.revealSpoiler=function\((.{1,2})\){/,
- replace: ".revealSpoiler=function($1){$self.reveal($1);"
+ match: /\.removeObscurity=function\((\i)\){/,
+ replace: ".removeObscurity=function($1){$self.reveal($1);"
}
}
],
diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts
index 64c676c..695e8c5 100644
--- a/src/plugins/vcDoubleClick.ts
+++ b/src/plugins/vcDoubleClick.ts
@@ -48,7 +48,7 @@ export default definePlugin({
},
{
// channel mentions
- find: ".EMOJI_IN_MESSAGE_HOVER",
+ find: ".shouldCloseDefaultModals",
replacement: {
match: /onClick:(\i)(?=,.{0,30}className:"channelMention")/,
replace: "onClick:(_vcEv)=>(_vcEv.detail>=2||_vcEv.target.className.includes('MentionText'))&&($1)()",