Commit Graph

51 Commits

Author SHA1 Message Date
57e98e6f03 feat: Refactor configuration and enhance error reporting functionality 2026-01-02 17:58:08 +01:00
4ee648e5cb refactor: Change default exports to named exports for consistency 2026-01-02 17:05:06 +01:00
d97af2e253 Back 2025-12-22 23:30:36 +01:00
a80321274f Added dialog handlers to prevent native pop-ups when using the browser and removed the old dialog handling code in the login process. 2025-12-22 22:19:48 +01:00
Luis Antonio
c80ea13877 Added specific arguments for Linux and Windows machines 2025-12-22 14:54:42 +00:00
9d9b391cd1 Summary of implemented anti-detection improvements:
New files created:
SecureRandom.ts: Crypto-secure randomization (replaces Math.random())
NaturalMouse.ts: Mouse movements with Bézier curves
AntiDetectionScripts.ts: 23 layers of client-side anti-detection
Modified files:
Browser.ts: Integration of the centralized anti-detection system
Humanizer.ts: Complete rewrite with session personalization
HumanBehavior.ts: Unique personalization per account creation
Config.ts: New ConfigAntiDetection interface
23 active anti-detection protections:
WebDriver removal
Chrome runtime mocking
Canvas noise injection
WebGL parameter spoofing
Audio fingerprint protection
WebRTC IP leak prevention
Battery API spoofing
Permissions API masking
Plugin spoofing
Network Information
Media Device Protection
Speech Synthesis Protection
Keyboard Layout Detection and Prevention
Timing Attack Prevention
Error Stack Sanitization
Console Protection
Navigator Properties Protection
Hardware Concurrency Spoofing
Memory Spoofing
Connection Information
PDF Viewer Detection
Automation Detection (Puppeteer, Selenium, Playwright)
Timezone/Locale Coherence
Behavioral Improvements:
Bezier Curves for Mouse Movement (No Straight Lines)
Simulated Natural Tremors in Movements
Overshoot and Correction Like a Real Human
Unique Personality Per Session (Typing Speed, Mouse Precision, Error Rate)
Gaussian Distribution for Delays (No Fixed Timing)
Fatigue Simulation with Performance Variation
Random Thinking Pauses
2025-12-16 22:22:38 +01:00
704c271b91 Corrections and Improvements Made
1. Fixed Dashboard
Issues Resolved:

 Unexpected token 'class' - File corrupted by a formatter → Cleanly rewritten
 startBot is not defined - Broken template literals → Code rewritten to ES5-compatible
 Tracking Prevention blocked access - External CDNs blocked → SVG icons inline (except Chart.js)
 favicon.ico 404 - No favicon → Added an inline emoji favicon
Modified Files:

app.js - Rewritten without problematic template literals
index.html - SVG icons inline, favicon inline
2. Enhanced Anti-Detection
Browser.ts - Expanded Chromium arguments:

--disable-automation - Hides automation flag
--force-webrtc-ip-handling-policy=disable_non_proxied_udp - Blocks WebRTC IP leaks
--disable-webrtc-hw-encoding/decoding - Disables WebRTC hardware encoding
--disable-gpu-sandbox, --disable-accelerated-2d-canvas - Reduces GPU fingerprinting
--disable-client-side-phishing-detection - Disables anti-phishing detection
--disable-features=TranslateUI,site-per-process,IsolateOrigins - Hides bot-like features
--no-zygote, --single-process - Single-process mode (harder to detect)
--enable-features=NetworkService,NetworkServiceInProcess - Integrated network
11 layers of JavaScript anti-detection (existing, verified):

navigator.webdriver Removed
window.chrome.runtime spoofed
Canvas fingerprint randomized
WebGL renderer hidden
API permissions normalized
Realistic plugins injected
WebRTC IP leak prevention
Battery API spoofed
Hardware concurrency normalized
Audio fingerprint protected
Connection info spoofed
3. Dashboard - Features
 Real-time WebSocket for logs
 Chart.js graphs (Points History, Activity Breakdown)
 Start/Stop/Restart/Reset State controls
 Account list with status
 Light/dark theme with persistence
 Log export to text file
 Toast notifications
 Modal system
2025-12-16 21:41:09 +01:00
744e3c9c4a 1. Completely Rebuilt Dashboard
index.html - New Modern Interface:

Header with animated status badge (Running/Stopped)
Grid of 6 statistics (Accounts, Points, Completed, Errors, Uptime, Memory)
Control Panel with 4 buttons (Start/Stop/Restart/Reset State)
Account List with avatars and statuses
Quick Actions (Run Single, Export Logs, Config, History)
Points History Graph (Chart.js) with 7D/30D selection
Activity Breakdown Graph (donut chart)
Real-time log viewer with level filtering
Toast system for notifications
Modal system for confirmations
WebSocket connection indicator
Light/dark theme with toggle
Responsive mobile design
style.css - Modern CSS with:

CSS variables for theming (dark + light)
Smooth animations (pulse, fade-in, slideIn)
GitHub-inspired design
Custom scrollbar
Responsive breakpoints
app.js - Full JavaScript:

WebSocket handling with automatic reconnection
Chart.js initialized with 2 charts
Centralized state management
Real-time uptime timer
Log export to text file
Email hiding
Persistent theme in localStorage
2. Improved backend
routes.ts:233-302 - New API routes:

POST /api/reset-state - Resets the state of today's jobs
GET /api/memory - Returns current memory usage
3. Enhanced anti-detection (previous session)
Browser.ts - 8 new layers of protection:

WebRTC Leak Prevention
Battery API Spoofing
Hardware Concurrency Normalization
Device Memory Consistency
Audio Fingerprint Protection
Timezone Consistency
Connection Info Spoofing
2025-12-16 21:32:36 +01:00
Rempacious
e98edd6b93 fix: improve email typing with verification and remove example accounts file 2025-12-09 14:45:05 +08:00
067c1989e2 feat: implement fingerprint validation and age check to enhance anti-detection measures 2025-12-06 14:54:02 +01:00
777557f82c feat: improve navigation handling with retry logic and enhanced error logging 2025-12-06 14:01:30 +01:00
5f55b46568 feat: add error handling for user data requests and implement plain HTTP to HTTPS port error detection 2025-12-06 13:55:07 +01:00
54e541581e Refactor code structure for improved readability and maintainability 2025-11-15 18:56:28 +01:00
6be7763698 feat: add extractBalancedObject utility and tests; enhance dashboard parsing 2025-11-15 14:46:44 +01:00
cf0611d841 feature: Update the version to 2.60.0 and improve the handling of human gestures, etc. 2025-11-15 12:35:09 +01:00
cbd05d128e fix: Improve error handling and logging across multiple modules; enhance compatibility for legacy formats 2025-11-14 20:56:48 +01:00
8950da2563 fix: Enhance referral URL handling and improve diagnostic logging for account creation 2025-11-14 20:13:17 +01:00
47424be67b fix: Update version to 2.56.14 and enhance page reload logic to handle missing activities 2025-11-13 21:59:59 +01:00
c1ab595f25 fix: Update package version to 2.56.13 and improve timeout handling for custom elements registration 2025-11-13 21:48:59 +01:00
7331e6d490 fix: Enable automatic daily runs in scheduling configuration 2025-11-13 21:37:54 +01:00
5651f62088 Fix error 2025-11-13 20:23:57 +01:00
2959fc8c73 Feature: Improved handling of wait times for page checks and reloads, using a 10s timeout for slower networks 2025-11-13 14:37:17 +01:00
9f56227608 feature: Improved element management and diagnostics during navigation to the homepage 2025-11-12 23:16:29 +01:00
108c9bf215 feature: Improve wait times with adaptive detection for better element responsiveness 2025-11-11 14:48:57 +01:00
53fe16b1cc feat: Implement smart waiting utilities for improved page readiness and element detection
- Added `waitForPageReady` and `waitForElementSmart` functions to replace fixed timeouts with intelligent checks.
- Updated various parts of the codebase to utilize the new smart wait functions, enhancing performance and reliability.
- Improved logging for page readiness and element detection.
- Refactored login and browser functions to reduce unnecessary waits and enhance user experience.
- Fixed selector for MORE_ACTIVITIES to avoid strict mode violations.
- Added unit tests for smart wait utilities to ensure functionality and performance.
2025-11-11 14:20:37 +01:00
89bc226d6b New structure 2025-11-11 12:59:42 +01:00
04a1a4c0a4 Clean up 2025-11-10 19:57:43 +01:00
aeaffeb7ca fix: Revert version to 2.56.2 in package.json; enhance fingerprint injection error handling and configuration options 2025-11-10 19:51:34 +01:00
103312e0d2 feat: Improve browser stability with channel option and enhance fingerprint injection error handling 2025-11-10 19:50:25 +01:00
2c55fff61d feat: Improve error logging and validation across various flows and utilities 2025-11-09 18:05:43 +01:00
9fb5911fa2 feat: Centralize browser instance creation to eliminate duplication in Desktop and Mobile flows
fix: Update error message for HTTP 400 checks to English
refactor: Improve logging for network idle wait timeout in Workers
fix: Initialize lastError in Axios client to prevent undefined errors
chore: Update tsconfig to include path mappings for better module resolution
2025-11-09 17:56:46 +01:00
773304fc85 Refactor: Simplify recovery email handling and validation; update documentation for clarity 2025-11-08 21:26:06 +01:00
5e322af2c0 Fix: Enhance error handling and timeout management across various modules; improve validation and documentation 2025-11-08 18:52:31 +01:00
6b687a1018 Remove BuyMode and fix 2025-11-08 18:25:51 +01:00
d04289948e Fix: Reorganize imports for better clarity in test files 2025-11-08 12:20:38 +01:00
8eefd15b80 feat: Refactor and modularize flow handling for improved maintainability
- Extracted BuyModeHandler, DesktopFlow, MobileFlow, and SummaryReporter into separate modules for better organization and testability.
- Enhanced type safety and added interfaces for various return types in Load, Logger, UserAgent, and flow modules.
- Implemented comprehensive error handling and logging throughout the new modules.
- Added unit tests for DesktopFlow, MobileFlow, and SummaryReporter to ensure functionality and correctness.
- Updated existing utility functions to support new flow structures and improve code clarity.
2025-11-08 12:19:34 +01:00
1ff521f505 Refactor imports and improve error handling across multiple files for better maintainability and clarity 2025-11-08 10:55:51 +01:00
0d6ab38b48 Improved interactive mode: added an automatic job reset option for scheduled tasks and improved stealth mode to bypass CAPTCHAs. 2025-11-05 22:44:16 +01:00
9733c5698b feat: Improve error handling for HTTP 400 and network issues in browser navigation 2025-11-04 22:55:58 +01:00
f32c1bc039 Patch 2 2025-11-04 22:50:02 +01:00
9fbdd2be8a feat: Fix DNS 404 2025-11-04 22:45:56 +01:00
4c3a57a508 feat: refactor browser configuration handling and update validation logic 2025-11-04 22:43:09 +01:00
76c7ce3100 Fix bug rewards.bing 2025-11-04 22:20:59 +01:00
c0a868ff1f feat: implement error logging in catch blocks for improved error handling and debugging 2025-11-04 22:04:20 +01:00
39b62a4190 feat: Implement account suspension checks and improve error handling
- Added a method to check for account suspension using multiple detection methods in BrowserFunc.
- Refactored existing suspension checks to utilize the new method, reducing code duplication.
- Enhanced error handling in various functions to throw original errors instead of wrapping them.
- Improved environment variable parsing in constants to streamline validation.
- Updated login flow to optimize session restoration and error handling.
- Refined Axios request logic to include retry mechanisms for proxy authentication and network errors.
- Enhanced logging functionality to provide clearer output and error context.
- Improved utility functions with additional validation for input parameters.
2025-11-03 21:21:13 +01:00
f1db62823c Refactor: Enhance error handling and logging in Browser and MicrosoftRewardsBot classes; remove unused luxon declarations 2025-11-03 20:26:16 +01:00
36452e77e2 Refactor: Remove legacy code and improve import statements across multiple files 2025-11-03 20:03:42 +01:00
baf25103f7 Refactor: Clean up unused imports and improve code readability across multiple files 2025-11-03 19:52:27 +01:00
43ed6cd7f8 refactor: remove legacy scheduling and analytics code
- Deleted the scheduler module and its associated functions, transitioning to OS-level scheduling.
- Removed the Analytics module and its related interfaces, retaining only a placeholder for backward compatibility.
- Updated ConfigValidator to warn about legacy schedule and analytics configurations.
- Cleaned up StartupValidator to remove diagnostics and schedule validation logic.
- Adjusted Load.ts to handle legacy flags for diagnostics and analytics.
- Removed unused diagnostics capturing functionality.
2025-11-03 19:18:09 +01:00
579c8a4dcd Refactor page reload and dashboard extraction logic; consolidate dismissal methods in BrowserUtil; enhance Login TOTP handling; streamline environment variable parsing in scheduler 2025-11-03 16:29:38 +01:00