mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-13 02:14:29 +00:00
test
This commit is contained in:
1 parent
fecb53738f
commit
2c9f6a2c2e
1 file changed
+22
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user