VoiceDownload: fix patch

This commit is contained in:
prism 2026-01-23 21:04:59 +01:00 • committed by sadan4
parent d53d759186
commit e7c5c90bba
2 changed files with 4 additions and 5 deletions

View file

@ -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)"
}
}
],

View file

@ -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);
}
}