网址二维码调整

This commit is contained in:
fofolee 2022-04-29 00:38:18 +08:00
parent f0e4022e3b
commit 3e3248162f

View File

@ -1,40 +1,38 @@
{
"features": {
"code": "default_urlToQrCode",
"explain": "网址二维码",
"cmds": [
{
"label": "网址二维码",
"type": "window",
"match": {
"app": [
"chrome.exe",
"firefox.exe",
"MicrosoftEdge.exe",
"iexplore.exe",
"msedge.exe",
"Google Chrome.app",
"Safari.app",
"Microsoft Edge.app",
"chrome",
"firefox"
]
}
}
],
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAA1klEQVRoge2YPQ6AMAiF1XgvD+DkSZ08gCfTqUtNAxYQad83GvNSyl9hGADomzH/sGzHJRE89/Whaak7SUT/AAzwZqZ+KMVeoja2tXTb90AivxHqBr/SDe8BGOANOwe0Yl5bt30PSN8w1rrhPQADvHldAajOScU2d17gVqfwHoAB3pBxJo15LpRuszPxoxNTN2rVmWsJ7wHzvZDVJJcI7wG3rcTb6lY6B3ugqT2YNe5bCSnt54AVWtVK3QCrp0YJ962ElPA5oN6Jc2onsG5eozAAAAD65gb6SG6iK2hylQAAAABJRU5ErkJggg==",
"platform": [
"win32",
"darwin",
"linux"
]
},
"program": "quickcommand",
"cmd": "utools.redirect('二维码', utools.getCurrentBrowserUrl())",
"output": "text",
"hasSubInput": false,
"scptarg": "",
"tags": [
"默认"
]
}
{
"program": "html",
"cmd": "<head>\n <script src=\"http://static.runoob.com/assets/qrcode/qrcode.min.js\"></script>\n</head>\n\n<body>\n <div id=\"qrcode\" style=\"display: flex; justify-content: center;\"></div>\n <script>\n let cmdCtrlKey= utools.isMacOs() ? \"command\" : \"control\";\n utools.hideMainWindow();\n quickcommand.sleep(100);\n utools.simulateKeyboardTap(\"l\", cmdCtrlKey);\n quickcommand.sleep(100);\n utools.simulateKeyboardTap(\"c\", cmdCtrlKey);\n quickcommand.sleep(100);\n utools.showMainWindow();\n let url = quickcommand.readClipboard();\n var qrcode = new QRCode(document.getElementById(\"qrcode\"), {\n width: 400,\n height: 400\n })\n qrcode.makeCode(url)\n </script>\n</body>\n\n</html>",
"scptarg": "",
"features": {
"code": "default_urlToQrCode",
"explain": "网址二维码",
"cmds": [{
"type": "window",
"label": "网址二维码",
"match": {
"app": [
"chrome.exe",
"firefox.exe",
"MicrosoftEdge.exe",
"iexplore.exe",
"msedge.exe",
"Google Chrome.app",
"Safari.app",
"Microsoft Edge.app",
"chrome",
"firefox"
]
}
}],
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAA1klEQVRoge2YPQ6AMAiF1XgvD+DkSZ08gCfTqUtNAxYQad83GvNSyl9hGADomzH/sGzHJRE89/Whaak7SUT/AAzwZqZ+KMVeoja2tXTb90AivxHqBr/SDe8BGOANOwe0Yl5bt30PSN8w1rrhPQADvHldAajOScU2d17gVqfwHoAB3pBxJo15LpRuszPxoxNTN2rVmWsJ7wHzvZDVJJcI7wG3rcTb6lY6B3ugqT2YNe5bCSnt54AVWtVK3QCrp0YJ962ElPA5oN6Jc2onsG5eozAAAAD65gb6SG6iK2hylQAAAABJRU5ErkJggg==",
"platform": [
"win32",
"darwin",
"linux"
]
},
"output": "html",
"hasSubInput": false,
"tags": [
"默认"
]
}