Update Kyuu Plugins

This commit is contained in:
thororen1234 2024-07-13 01:30:19 -04:00
parent cb57be9e01
commit f4d04f12ad
6 changed files with 211 additions and 6 deletions

View file

@ -38,7 +38,7 @@ const { Spinner } = proxyLazy(() => Forms as any as {
SpinnerTypes: typeof SpinnerTypes;
});
const ChannelMessage = findComponentByCodeLazy("childrenExecutedCommand:", ".hideAccessories");
const ChannelMessage = findComponentByCodeLazy("isFirstMessageInForumPost", "trackAnnouncementViews") as ComponentType<any>;
export default definePlugin({
name: "MessageLinkTooltip",
@ -49,7 +49,7 @@ export default definePlugin({
{
find: ',className:"channelMention",children:[',
replacement: {
match: /(?<=\.jsxs\)\()(\i\.\i)/,
match: /(?<=\.jsxs\)\()(\i\.\i)(?=,\{role:"link")/,
replace: "$self.wrapComponent(arguments[0], $1)"
}
}