From bc56706dde7a37fa63d934e59c4452ac6fe78a96 Mon Sep 17 00:00:00 2001 From: cp-20 <47262658+mario-hsp@users.noreply.github.com> Date: Sat, 17 Feb 2024 14:08:41 +0900 Subject: [PATCH] fix closing all Msg Tool broken by traQ update --- src/content_scripts/actions/lVAllMsgs.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content_scripts/actions/lVAllMsgs.ts b/src/content_scripts/actions/lVAllMsgs.ts index 8ebbb2f..613b936 100644 --- a/src/content_scripts/actions/lVAllMsgs.ts +++ b/src/content_scripts/actions/lVAllMsgs.ts @@ -2,7 +2,8 @@ import selectors from '../selectors'; import { mouseleave } from './utils/dispatchEvent'; const lVAllMsgs = () => { - document.body.click(); + document.body.dispatchEvent(new MouseEvent('mousedown')); + document.body.dispatchEvent(new MouseEvent('mouseup')); const messageListSelector = selectors.channelViewMsgList(); if (!messageListSelector) return;