mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-20 20:07:03 -04:00
Stable Fixes
This commit is contained in:
parent
16763a7cd4
commit
c17154e7cd
7 changed files with 5 additions and 83 deletions
|
@ -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: {
|
||||
|
|
|
@ -162,14 +162,6 @@ export default definePlugin({
|
|||
managedStyle,
|
||||
|
||||
patches: [
|
||||
{
|
||||
find: ".contain,SCALE_DOWN:",
|
||||
replacement: {
|
||||
match: /imageClassName:/,
|
||||
replace: `id:"${ELEMENT_ID}",$&`
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
find: ".dimensionlessImage,",
|
||||
replacement: [
|
||||
|
|
|
@ -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)",
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue