diff --git a/src/js/composer/commands/macosCommands.js b/src/js/composer/commands/macosCommands.js index ef08a91..88ed474 100644 --- a/src/js/composer/commands/macosCommands.js +++ b/src/js/composer/commands/macosCommands.js @@ -307,34 +307,5 @@ export const macosCommands = { }, ], }, - { - value: "quickcomposer.macos.browser.getUrl", - label: "浏览器控制", - icon: "web", - isAsync: true, - config: [ - { - component: "ButtonGroup", - defaultValue: "Microsoft Edge", - options: [ - { - label: "Edge 浏览器", - value: "Microsoft Edge", - }, - { - label: "Chrome 浏览器", - value: "Google Chrome", - }, - ], - width: 12, - }, - ], - subCommands: browserCommands.commands.find( - (command) => command.label === "浏览器操作" - ).subCommands.map((command) => ({ - ...command, - value: command.value.replace("quickcomposer.browser.", "quickcomposer.macos.browser."), - })), - }, ], }; diff --git a/src/js/composer/commands/windowsCommands.js b/src/js/composer/commands/windowsCommands.js index a8f30a2..299cbf4 100644 --- a/src/js/composer/commands/windowsCommands.js +++ b/src/js/composer/commands/windowsCommands.js @@ -804,49 +804,6 @@ export const windowsCommands = { }, ], }, - // 浏览器 - { - value: "quickcomposer.windows.browser.getUrl", - label: "浏览器控制", - icon: "language", - isAsync: true, - config: [ - { - component: "ButtonGroup", - width: 12, - options: [ - { label: "Microsoft Edge", value: "msedge" }, - { label: "Google Chrome", value: "chrome" }, - ], - defaultValue: "msedge", - }, - ], - subCommands: browserCommands.commands - .find((command) => command.label === "浏览器操作") - .subCommands.map((command) => ({ - ...command, - value: command.value.replace( - "quickcomposer.browser.", - "quickcomposer.windows.browser." - ), - })) - // 无法获得输出,过滤相关命令 - .filter( - (command) => - ![ - "getTabs", - "activateTab", - "getText", - "getHtml", - "getCookie", - "getScrollPosition", - "getPageSize", - "waitForElement", - ] - .map((func) => `quickcomposer.windows.browser.${func}`) - .includes(command.value) - ), - }, // 监控 { value: "quickcomposer.windows.monitor.watchClipboard",