This commit is contained in:
Dũng committed 2025-08-10 20:06:21 +07:00
1 parent fecb53738f
commit 2c9f6a2c2e
1 file changed
+22
+22
View File
@@ -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) => {