fix ImageZoom & FakeProfileThemes (#3546)

Co-authored-by: Vendicated <vendicated@riseup.net>
This commit is contained in:
sadan4 2025-07-10 15:56:12 -04:00 committed by dorkbutt
parent 4c315b6886
commit 8ec5b0a8d8
No known key found for this signature in database
3 changed files with 5 additions and 10 deletions

View file

@ -171,14 +171,9 @@ export default definePlugin({
replace: `id:"${ELEMENT_ID}",$&`
},
{
// This patch needs to be above the next one as it uses the zoomed class as an anchor
match: /\.zoomed]:.+?,(?=children:)/,
replace: "$&onClick:()=>{},"
},
{
match: /className:\i\(\)\(\i\.wrapper,.+?}\),/,
replace: ""
},
match: /(?<=null!=(\i)\?.{0,20})\i\.\i,{children:\1/,
replace: "'div',{onClick:e=>e.stopPropagation(),children:$1"
}
]
},
// Make media viewer options not hide when zoomed in with the default Discord feature