noMosaic: fix (#1849)
This commit is contained in:
parent
09b646b860
commit
940193c30b
|
@ -15,23 +15,25 @@ export default definePlugin({
|
||||||
authors: [Devs.AutumnVN],
|
authors: [Devs.AutumnVN],
|
||||||
description: "Removes Discord new image mosaic",
|
description: "Removes Discord new image mosaic",
|
||||||
tags: ["image", "mosaic", "media"],
|
tags: ["image", "mosaic", "media"],
|
||||||
patches: [{
|
patches: [
|
||||||
find: "Media Mosaic",
|
{
|
||||||
replacement: [
|
find: ".oneByTwoLayoutThreeGrid",
|
||||||
{
|
replacement: [{
|
||||||
match: /mediaLayoutType:\i\.\i\.MOSAIC/,
|
match: /mediaLayoutType:\i\.\i\.MOSAIC/,
|
||||||
replace: 'mediaLayoutType:"RESPONSIVE"',
|
replace: 'mediaLayoutType:"RESPONSIVE"'
|
||||||
},
|
|
||||||
{
|
|
||||||
match: /\i===\i\.\i\.MOSAIC/,
|
|
||||||
replace: "true",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /null!==\(\i=\i\.get\(\i\)\)&&void 0!==\i\?\i:"INVALID"/,
|
match: /null!==\(\i=\i\.get\(\i\)\)&&void 0!==\i\?\i:"INVALID"/,
|
||||||
replace: '"INVALID"',
|
replace: '"INVALID"',
|
||||||
},
|
},]
|
||||||
],
|
},
|
||||||
}],
|
{
|
||||||
|
find: "Messages.REMOVE_ATTACHMENT_TOOLTIP_TEXT",
|
||||||
|
replacement: {
|
||||||
|
match: /\i===\i\.\i\.MOSAIC/,
|
||||||
|
replace: "true"
|
||||||
|
}
|
||||||
|
}],
|
||||||
start() {
|
start() {
|
||||||
enableStyle(style);
|
enableStyle(style);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[class^="nonMediaAttachmentsContainer-"] [class*="messageAttachment-"] {
|
[class^="nonMediaAttachmentsContainer_"] [class*="messageAttachment_"] {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue