- Created .gitignore to exclude unnecessary files. - Added config.ini for account configuration. - Implemented cursor_auth_manager.py for managing authentication. - Developed cursor_pro_keep_alive.py for automated account management. - Included CursorKeepAlive.spec for packaging. - Added gpt-accesstoken.py for obtaining ChatGPT access tokens. - Created README.md with usage instructions. - Updated requirements.txt with necessary dependencies. - Added run_cursor.bat for script execution. - Implemented update_cursor_auth.py for updating authentication details. - Included turnstilePatch for handling CAPTCHA challenges. - Added logging functionality in log.txt for tracking script execution. - Created dist folder with packaged executable and necessary files.
12 lines
372 B
JavaScript
12 lines
372 B
JavaScript
function getRandomInt(min, max) {
|
|
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
}
|
|
|
|
// old method wouldn't work on 4k screens
|
|
|
|
let screenX = getRandomInt(800, 1200);
|
|
let screenY = getRandomInt(400, 600);
|
|
|
|
Object.defineProperty(MouseEvent.prototype, 'screenX', { value: screenX });
|
|
|
|
Object.defineProperty(MouseEvent.prototype, 'screenY', { value: screenY }); |