mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-24 15:01:01 +00:00
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.
This commit is contained in:
@@ -165,8 +165,10 @@ class Browser {
|
||||
// Hide automation markers
|
||||
['__nightmare', '__playwright', '__pw_manual', '__webdriver_script_fn', 'webdriver'].forEach(prop => {
|
||||
try {
|
||||
if (prop in window) delete window[prop];
|
||||
} catch {}
|
||||
if (prop in window) delete (window as Record<string, unknown>)[prop];
|
||||
} catch {
|
||||
// Silently ignore: property deletion may be blocked by browser security
|
||||
}
|
||||
});
|
||||
|
||||
// Override permissions to avoid detection
|
||||
|
||||
Reference in New Issue
Block a user