ViewIcon: Replace regex find with string find

main
Nuckyz 6 months ago
parent cddc811c02
commit c5e554e48c
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

@ -221,7 +221,7 @@ export default definePlugin({
}, },
// User DMs top small icon // User DMs top small icon
{ {
find: /HiddenVisually,{children:\i\.\i\.Messages\.DIRECT_MESSAGE/, find: ".cursorPointer:null,children",
replacement: { replacement: {
match: /.Avatar,.+?src:(.+?\))(?=[,}])/, match: /.Avatar,.+?src:(.+?\))(?=[,}])/,
replace: (m, avatarUrl) => `${m},onClick:()=>$self.openImage(${avatarUrl})` replace: (m, avatarUrl) => `${m},onClick:()=>$self.openImage(${avatarUrl})`

Loading…
Cancel
Save