From b14f5e8f48e64f67cfa836a61e6e5d12eae31e48 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 4 Apr 2024 01:44:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9B=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- branch/latest/md5.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/branch/latest/md5.js b/branch/latest/md5.js index 9fb3d74..869278e 100644 --- a/branch/latest/md5.js +++ b/branch/latest/md5.js @@ -25,14 +25,15 @@ if (run_env.from_code) { // 整一套虚拟的window和document // 但说实话十分生草 + + // list of elements + let stored_elements = []; + global.window = { sessionStorage: function () {}, localStorage: function () {}, }; - // list of elements - let stored_elements = []; - let fake_element = { childList: [], tag: "", @@ -1457,15 +1458,18 @@ var A = { uY() { if (true === $.mA) return $.mA = true - H.uZ() + if (!run_env.from_code) { + H.initNativeDispatchContinue() + } }, - uZ() { + initNativeDispatchContinue() { var s, r, q, p, o, n, m, l $.lt = Object.create(null) $.ly = Object.create(null) H.uX() s = init.interceptorsByTag r = Object.getOwnPropertyNames(s) + // 检测是否在网页内运行 if (typeof window != "undefined") { window q = function () {} @@ -12945,8 +12949,8 @@ HtmlRenderer.fq.prototype = { p = q.i("y") o = t.bQ n = P.aa(new H.y(H.b(C.e.bt(0, P.aa(new H.y(new H.a9(r, q), - new HtmlRenderer.jx(this_), p), true, p.i("M.E"))).split("\n"), t.s), - new HtmlRenderer.jy(), o), true, o.i("M.E")) + new HtmlRenderer.jx(this_), p), true, p.i("M.E"))).split("\n"), t.s), + new HtmlRenderer.jy(), o), true, o.i("M.E")) r = n.length if (r > 1) { // if (!J.Y(J.J(J.J(n[0], 0), 0), "")) { @@ -20771,8 +20775,8 @@ function main() { // 这里请输入一个被混淆过的名字 switch_to = 5 if (run_env.from_code) { - console.log("node input:", raw_names) raw_names = name_input + console.log("node input:|\n", raw_names, "\n|") } else { m = window.sessionStorage.getItem(LangData.eQ("k")) l = X.f4(m, 0)