mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-11 21:23:36 +08:00
添加utools.markdown支持
This commit is contained in:
parent
c1f86c20d2
commit
ebde8999bf
@ -323,6 +323,19 @@ export const ubrowserOperationConfigs = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
markdown: {
|
||||||
|
value: "markdown",
|
||||||
|
label: "转markdown",
|
||||||
|
icon: "get_app",
|
||||||
|
config: [
|
||||||
|
{
|
||||||
|
label: "CSS 或 XPath 选择器,不传递则转换整个网页内容",
|
||||||
|
icon: "find_in_page",
|
||||||
|
component: "VariableInput",
|
||||||
|
width: 12,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
setCookies: {
|
setCookies: {
|
||||||
value: "setCookies",
|
value: "setCookies",
|
||||||
label: "设置Cookie",
|
label: "设置Cookie",
|
||||||
|
5
src/plugins/monaco/types/utools.api.d.ts
vendored
5
src/plugins/monaco/types/utools.api.d.ts
vendored
@ -138,6 +138,11 @@ interface UBrowser {
|
|||||||
* 配合 when 使用
|
* 配合 when 使用
|
||||||
*/
|
*/
|
||||||
end(): this;
|
end(): this;
|
||||||
|
/**
|
||||||
|
* 转为markdown
|
||||||
|
* @param selector CSS 或 XPath 选择器,不传递则转换整个网页内容
|
||||||
|
*/
|
||||||
|
markdown(selector: string): this;
|
||||||
/**
|
/**
|
||||||
* 单击元素
|
* 单击元素
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user