Skip to content

Commit

Permalink
feat: bypass the bot detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Siykt committed Sep 15, 2023
1 parent a698770 commit c5d4889
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/content/blocksHandler/handlerEventClick.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { sendMessage } from '@/utils/message';
import { sleep } from '@/utils/helper';
import { getElementPosition, simulateClickElement } from '../utils';
import handleSelector from '../handleSelector';

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c5d4889

Please sign in to comment.