86 lines
2.4 KiB
JSON
86 lines
2.4 KiB
JSON
{
|
|
"id": "wta-selection-actions",
|
|
"name": "Selection Actions",
|
|
"description": "A floating action bar that appears when you select text on a page. Search (5 engines), copy, open as URL, translate, or share. Fully configurable — choose which actions appear and which search engine to use. A superset of the former Floating Search module.",
|
|
"icon": "text_select_start",
|
|
"category": "INTERACTION",
|
|
"tags": ["search", "selection", "clipboard", "translate", "official"],
|
|
"version": {
|
|
"code": 1,
|
|
"name": "1.0.0",
|
|
"changelog": "Initial release. Replaces Floating Search with translate + share actions."
|
|
},
|
|
"author": {
|
|
"name": "shiaho",
|
|
"url": "https://github.com/shiaho777"
|
|
},
|
|
"runAt": "DOCUMENT_END",
|
|
"urlMatches": [
|
|
{ "pattern": "*", "isRegex": false, "exclude": false }
|
|
],
|
|
"permissions": ["DOM_ACCESS", "DOM_OBSERVE", "CSS_INJECT", "CLIPBOARD", "WINDOW_OPEN"],
|
|
"configItems": [
|
|
{
|
|
"key": "engine",
|
|
"name": "Search engine",
|
|
"description": "Engine used by the Search action.",
|
|
"type": "SELECT",
|
|
"defaultValue": "google",
|
|
"required": false,
|
|
"options": ["google", "duckduckgo", "bing", "baidu", "wikipedia"]
|
|
},
|
|
{
|
|
"key": "translateEngine",
|
|
"name": "Translate engine",
|
|
"description": "Engine used by the Translate action.",
|
|
"type": "SELECT",
|
|
"defaultValue": "google",
|
|
"required": false,
|
|
"options": ["google", "deepl", "mymemory"]
|
|
},
|
|
{
|
|
"key": "showSearch",
|
|
"name": "Show Search action",
|
|
"type": "BOOLEAN",
|
|
"defaultValue": "true",
|
|
"required": false
|
|
},
|
|
{
|
|
"key": "showCopy",
|
|
"name": "Show Copy action",
|
|
"type": "BOOLEAN",
|
|
"defaultValue": "true",
|
|
"required": false
|
|
},
|
|
{
|
|
"key": "showOpen",
|
|
"name": "Show Open as URL action",
|
|
"type": "BOOLEAN",
|
|
"defaultValue": "true",
|
|
"required": false
|
|
},
|
|
{
|
|
"key": "showTranslate",
|
|
"name": "Show Translate action",
|
|
"type": "BOOLEAN",
|
|
"defaultValue": "true",
|
|
"required": false
|
|
},
|
|
{
|
|
"key": "showShare",
|
|
"name": "Show Share action",
|
|
"type": "BOOLEAN",
|
|
"defaultValue": "false",
|
|
"required": false
|
|
},
|
|
{
|
|
"key": "minLength",
|
|
"name": "Minimum selection length",
|
|
"description": "Ignore selections shorter than this many characters.",
|
|
"type": "NUMBER",
|
|
"defaultValue": "2",
|
|
"required": false
|
|
}
|
|
]
|
|
}
|