From dbba6ca4b9f0270555fc94091e6207f0ea6cd6b8 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Wed, 4 Dec 2024 14:29:07 +0800 Subject: [PATCH] new readme --- README.md | 7 ++++++- injector.minify.js | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 95aaf4e..9a2cb36 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # EaglerForgeInjector -A modding API injector for vanilla eaglercraft builds. +An advanced modding API injector for vanilla eaglercraft builds. +Current features: +- Method hooking/monkey patching +- Reflection +- Custom classes +- Modify the dedicated server ### How to use: #### Online diff --git a/injector.minify.js b/injector.minify.js index 8dc955c..d0a7668 100644 --- a/injector.minify.js +++ b/injector.minify.js @@ -36,18 +36,19 @@ async function shronk(input) { const parser = new DOMParser(); const doc = parser.parseFromString(inputHtml, 'text/html'); const scriptTags = doc.querySelectorAll('script'); - + await wait(100); //trying to get chrome to gc for (let i = 0; i < scriptTags.length; i++) { const scriptTag = scriptTags[i]; const code = scriptTag.textContent; _status("[ASYNC_PLUGIN_1] Transpiling script #" + (i + 1) + " of length " + Math.round(code.length / 1000) + "k..."); - await wait(50); + await wait(150); const output = Babel.transform(code, { plugins: [] }); scriptTag.textContent = output.code; + await wait(10); } _status("[ASYNC_PLUGIN_1] Job complete!");