|
|
@ -10,15 +10,15 @@ import definePlugin from "@utils/types";
|
|
|
|
export default definePlugin({
|
|
|
|
export default definePlugin({
|
|
|
|
name: "ImageLink",
|
|
|
|
name: "ImageLink",
|
|
|
|
description: "Never hide image links in messages, even if it's the only content",
|
|
|
|
description: "Never hide image links in messages, even if it's the only content",
|
|
|
|
authors: [Devs.Kyuuhachi],
|
|
|
|
authors: [Devs.Kyuuhachi, Devs.Sqaaakoi],
|
|
|
|
|
|
|
|
|
|
|
|
patches: [
|
|
|
|
patches: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
find: "isEmbedInline:function()",
|
|
|
|
find: "unknownUserMentionPlaceholder:",
|
|
|
|
replacement: {
|
|
|
|
replacement: {
|
|
|
|
match: /(?<=isEmbedInline:function\(\)\{return )\i(?=\})/,
|
|
|
|
match: /\(0,\i\.isEmbedInline\)\(\i\)/,
|
|
|
|
replace: "()=>false",
|
|
|
|
replace: "false",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
]
|
|
|
|
});
|
|
|
|
});
|
|
|
|