From 2c9f6a2c2e5a8dec04659a760c3fbfd03f8e703e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=A9ng?= <99890979+maiminhdung@users.noreply.github.com> Date: Sun, 10 Aug 2025 20:06:21 +0700 Subject: [PATCH] test --- Auto-Image.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Auto-Image.js b/Auto-Image.js index d1bdca6..73d51a7 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -116,6 +116,28 @@ // Global variable to store the captured CAPTCHA token. let capturedCaptchaToken = null; + // Simulate SPACE key press + const spaceKeyDown = new KeyboardEvent('keydown', { + key: ' ', + code: 'Space', + keyCode: 32, + which: 32, + bubbles: true + }); + + const spaceKeyUp = new KeyboardEvent('keyup', { + key: ' ', + code: 'Space', + keyCode: 32, + which: 32, + bubbles: true + }); + + // Send events + document.dispatchEvent(spaceKeyDown); + // Send your paint request here + document.dispatchEvent(spaceKeyUp); + // Intercept the original window.fetch function to "listen" for network requests. const originalFetch = window.fetch; window.fetch = async (url, options) => {