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
36 lines
777 B
JSON
36 lines
777 B
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "OpenCLI",
|
|
"version": "0.2.0",
|
|
"description": "Bridge between opencli CLI and your browser — execute commands, read cookies, manage tabs.",
|
|
"permissions": [
|
|
"tabs",
|
|
"cookies",
|
|
"activeTab",
|
|
"alarms",
|
|
"scripting",
|
|
"debugger"
|
|
],
|
|
"host_permissions": [
|
|
"<all_urls>"
|
|
],
|
|
"background": {
|
|
"service_worker": "dist/background.js",
|
|
"type": "module"
|
|
},
|
|
"icons": {
|
|
"16": "icons/icon-16.png",
|
|
"32": "icons/icon-32.png",
|
|
"48": "icons/icon-48.png",
|
|
"128": "icons/icon-128.png"
|
|
},
|
|
"action": {
|
|
"default_title": "OpenCLI",
|
|
"default_icon": {
|
|
"16": "icons/icon-16.png",
|
|
"32": "icons/icon-32.png"
|
|
}
|
|
},
|
|
"homepage_url": "https://github.com/jackwener/opencli"
|
|
}
|