From c5d4889c73097228c2af231a16d1dc79bd716418 Mon Sep 17 00:00:00 2001 From: siykt Date: Fri, 15 Sep 2023 16:16:29 +0800 Subject: [PATCH] feat: bypass the bot detection. --- src/content/blocksHandler/handlerEventClick.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/blocksHandler/handlerEventClick.js b/src/content/blocksHandler/handlerEventClick.js index 7e0368a09..339fc195b 100644 --- a/src/content/blocksHandler/handlerEventClick.js +++ b/src/content/blocksHandler/handlerEventClick.js @@ -1,4 +1,5 @@ import { sendMessage } from '@/utils/message'; +import { sleep } from '@/utils/helper'; import { getElementPosition, simulateClickElement } from '../utils'; import handleSelector from '../handleSelector'; @@ -27,7 +28,11 @@ function eventClick(block) { return sendMessage('debugger:send-command', payload, 'background'); }; + // bypass the bot detection. + await executeCommand('mouseMoved'); + await sleep(100); await executeCommand('mousePressed'); + await sleep(100); await executeCommand('mouseReleased'); return;