Bug Fixes
- Improved connection reliability: Use
127.0.0.1instead oflocalhostto avoid DNS/IPv6 resolution issues, add 15s global timeout wrapper aroundconnect()to prevent hanging forever - Use domcontentloaded everywhere: Changed
getCurrentPage()and prompt guidance to usedomcontentloadedinstead ofloadfor faster, more reliable page detection - Allow attaching to own extension pages: Extension pages can now be debugged while still blocking other extensions
Changes
- Centralized target filtering: Consolidated extension ID arrays and target filtering logic for cleaner code
- Optional wsUrl in getCDPSessionForPage:
wsUrlparameter now defaults togetCdpUrl()if not provided