From e7c5c90bba0cdd37664577c1f79c3213493afb70 Mon Sep 17 00:00:00 2001 From: prism Date: Fri, 23 Jan 2026 21:04:59 +0100 Subject: [PATCH] VoiceDownload: fix patch --- src/plugins/voiceDownload/index.tsx | 6 +++--- src/plugins/voiceDownload/style.css | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/voiceDownload/index.tsx b/src/plugins/voiceDownload/index.tsx index 571c3d0e9..f33e5e264 100644 --- a/src/plugins/voiceDownload/index.tsx +++ b/src/plugins/voiceDownload/index.tsx @@ -15,10 +15,10 @@ export default definePlugin({ authors: [Devs.puv], patches: [ { - find: "rippleContainer,children", + find: "VOICE_MESSAGE_PLAYBACK_STARTED,{src:", replacement: { - match: /\(0,\i\.jsx\).{0,150},children:.{0,50}\("source",{src:(\i)}\)}\)/, - replace: "[$&, $self.renderDownload($1)]" + match: /(?<=onVolumeHide:\i\}\))/, + replace: ",$self.renderDownload(arguments[0].src)" } } ], diff --git a/src/plugins/voiceDownload/style.css b/src/plugins/voiceDownload/style.css index 4e1379e21..b261bbe14 100644 --- a/src/plugins/voiceDownload/style.css +++ b/src/plugins/voiceDownload/style.css @@ -2,11 +2,10 @@ width: 24px; height: 24px; color: var(--interactive-icon-default); - margin-left: 12px; cursor: pointer; position: relative; } .vc-voice-download:hover { color: var(--interactive-icon-active); -} \ No newline at end of file +}