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 +}