30 lines
836 B
JSON
30 lines
836 B
JSON
{
|
||||
|
|
"manifest_version": 3,
|
|||
|
|
"name": "元素路径拾取器",
|
|||
|
|
"version": "1.1.0",
|
|||
|
|
"description": "点选任意页面元素,把它的 CSS 选择器和页面地址复制到剪贴板 —— 粘进 AI 对话框就能精确改样式。",
|
|||
|
|
"permissions": ["activeTab", "scripting", "clipboardWrite", "storage"],
|
|||
|
|
"host_permissions": ["http://127.0.0.1:8890/*"],
|
|||
|
|
"background": {
|
|||
|
|
"service_worker": "background.js"
|
|||
|
|
},
|
|||
|
|
"content_scripts": [
|
|||
|
|
{
|
|||
|
|
"matches": ["<all_urls>"],
|
|||
|
|
"js": ["picker.js"],
|
|||
|
|
"run_at": "document_idle",
|
|||
|
|
"all_frames": false
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"action": {
|
|||
|
|
"default_title": "进/出元素拾取模式(Alt+Shift+Z)"
|
|||
|
|
},
|
|||
|
|
"commands": {
|
|||
|
|
"toggle-picker": {
|
|||
|
|
"suggested_key": {
|
|||
|
|
"default": "Alt+Shift+Z"
|
|||
|
|
},
|
|||
|
|
"description": "进/出元素拾取模式"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|