mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
移除 macOS 和 Windows 命令中的浏览器控制相关代码
This commit is contained in:
parent
5cce8b001b
commit
cc8cabf374
@ -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."),
|
|
||||||
})),
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -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",
|
value: "quickcomposer.windows.monitor.watchClipboard",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user