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