网址二维码调整

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

View File

@ -1,27 +1,28 @@
{ {
"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": { "features": {
"code": "default_urlToQrCode", "code": "default_urlToQrCode",
"explain": "网址二维码", "explain": "网址二维码",
"cmds": [ "cmds": [{
{ "type": "window",
"label": "网址二维码", "label": "网址二维码",
"type": "window", "match": {
"match": { "app": [
"app": [ "chrome.exe",
"chrome.exe", "firefox.exe",
"firefox.exe", "MicrosoftEdge.exe",
"MicrosoftEdge.exe", "iexplore.exe",
"iexplore.exe", "msedge.exe",
"msedge.exe", "Google Chrome.app",
"Google Chrome.app", "Safari.app",
"Safari.app", "Microsoft Edge.app",
"Microsoft Edge.app", "chrome",
"chrome", "firefox"
"firefox" ]
]
}
} }
], }],
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAA1klEQVRoge2YPQ6AMAiF1XgvD+DkSZ08gCfTqUtNAxYQad83GvNSyl9hGADomzH/sGzHJRE89/Whaak7SUT/AAzwZqZ+KMVeoja2tXTb90AivxHqBr/SDe8BGOANOwe0Yl5bt30PSN8w1rrhPQADvHldAajOScU2d17gVqfwHoAB3pBxJo15LpRuszPxoxNTN2rVmWsJ7wHzvZDVJJcI7wG3rcTb6lY6B3ugqT2YNe5bCSnt54AVWtVK3QCrp0YJ962ElPA5oN6Jc2onsG5eozAAAAD65gb6SG6iK2hylQAAAABJRU5ErkJggg==", "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAA1klEQVRoge2YPQ6AMAiF1XgvD+DkSZ08gCfTqUtNAxYQad83GvNSyl9hGADomzH/sGzHJRE89/Whaak7SUT/AAzwZqZ+KMVeoja2tXTb90AivxHqBr/SDe8BGOANOwe0Yl5bt30PSN8w1rrhPQADvHldAajOScU2d17gVqfwHoAB3pBxJo15LpRuszPxoxNTN2rVmWsJ7wHzvZDVJJcI7wG3rcTb6lY6B3ugqT2YNe5bCSnt54AVWtVK3QCrp0YJ962ElPA5oN6Jc2onsG5eozAAAAD65gb6SG6iK2hylQAAAABJRU5ErkJggg==",
"platform": [ "platform": [
"win32", "win32",
@ -29,11 +30,8 @@
"linux" "linux"
] ]
}, },
"program": "quickcommand", "output": "html",
"cmd": "utools.redirect('二维码', utools.getCurrentBrowserUrl())",
"output": "text",
"hasSubInput": false, "hasSubInput": false,
"scptarg": "",
"tags": [ "tags": [
"默认" "默认"
] ]