From e0724db5694ebdd2057a05f7e5ad003cddd8ec1f Mon Sep 17 00:00:00 2001 From: fofolee Date: Mon, 2 May 2022 19:58:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80=E6=96=87=E6=A1=A3=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/preload.js | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/plugin/preload.js b/plugin/preload.js index 23f4d8b..b0bdd79 100644 --- a/plugin/preload.js +++ b/plugin/preload.js @@ -427,10 +427,23 @@ window.getSelectFile = hwnd => { } let runUbrowser = path => { - utools.ubrowser.goto(path).run({ - width: 1380, - height: 750 - }); + utools.ubrowser.goto(path) + .css(` + .ant-modal-content, + .ant-modal-mask, + [class*='index-module_contentWrapper'], + [class*='index-module_reward'], + [class*='ReaderLayout-module_asideWrapper'], + [class*='CornerBubble-module_cornerBubble'], + [class*='DocReader-module_comment'], + #header, + #footer { + display: none + }`) + .run({ + width: 980, + height: 750 + }); } const docsRepoUrl = 'https://www.yuque.com/fofolee/qcdocs3' @@ -564,7 +577,10 @@ window.runCodeFile = (cmd, option, terminal, callback) => { // } let child, cmdline; if (bin.slice(-7) == 'csc.exe') { - cmdline = `${bin} ${argv} /out:"${script.slice(0, -2) + 'exe'}" "${script}" && "${script.slice(0, -2) + 'exe'}" ${scptarg}` + cmdline = ` + $ { bin } + $ { argv } + /out:"${script.slice(0, -2) + 'exe'}" "${script}" && "${script.slice(0, -2) + 'exe'}" ${scptarg}` } else if (bin == 'gcc') { var suffix = utools.isWindows() ? '.exe' : '' cmdline = `${bin} ${argv} "${script.slice(0, -2)}" "${script}" && "${script.slice(0, -2) + suffix}" ${scptarg}`