Stable Fixes

This commit is contained in:
thororen1234 2025-04-09 23:24:22 -04:00
parent 16763a7cd4
commit c17154e7cd
No known key found for this signature in database
7 changed files with 5 additions and 83 deletions

View file

@ -13,13 +13,6 @@ export default definePlugin({
authors: [Devs.sadan, Devs.Nuckyz],
description: "Allows you to omit either width or height when opening an image modal",
patches: [
{
find: ".contain,SCALE_DOWN:",
replacement: {
match: /(?<="IMAGE"===\i\?)\i(?=\?)/,
replace: "true"
}
},
{
find: ".dimensionlessImage,",
replacement: {

View file

@ -162,14 +162,6 @@ export default definePlugin({
managedStyle,
patches: [
{
find: ".contain,SCALE_DOWN:",
replacement: {
match: /imageClassName:/,
replace: `id:"${ELEMENT_ID}",$&`
}
},
{
find: ".dimensionlessImage,",
replacement: [

View file

@ -85,7 +85,7 @@ export default definePlugin({
find: ".USER_MENTION)",
replacement: [
{
match: /(?<=onContextMenu:\i,color:)\i(?=\},\i\),\{children)(?<=user:(\i),channel:(\i).{0,500}?)/,
match: /(?<=onContextMenu:\i,color:)\i(?=,onClick)(?<=user:(\i),channel:(\i).+?)/,
replace: "$self.getColorInt($1?.id,$2?.id)",
}
],