mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
3984e0ae5d
Replace chrome.debugger (CDP) with chrome.scripting.executeScript for JS evaluation. Zero CDP fingerprint on sites without strict CSP. - Add extension/src/scripting.ts: tries chrome.scripting first, auto falls back to CDP on CSP errors (e.g. Twitter/X, Google) - Add 'scripting' permission + host_permissions to manifest.json - Route exec through scripting executor, keep CDP only for screenshot - Remember CSP-blocked tabs to skip straight to CDP on subsequent calls