mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 14:11:16 -09:00
new readme
This commit is contained in:
parent
f485ef39f2
commit
dbba6ca4b9
@ -1,5 +1,10 @@
|
|||||||
# EaglerForgeInjector
|
# 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:
|
### How to use:
|
||||||
#### Online
|
#### Online
|
||||||
|
@ -36,18 +36,19 @@ async function shronk(input) {
|
|||||||
const parser = new DOMParser();
|
const parser = new DOMParser();
|
||||||
const doc = parser.parseFromString(inputHtml, 'text/html');
|
const doc = parser.parseFromString(inputHtml, 'text/html');
|
||||||
const scriptTags = doc.querySelectorAll('script');
|
const scriptTags = doc.querySelectorAll('script');
|
||||||
|
await wait(100); //trying to get chrome to gc
|
||||||
for (let i = 0; i < scriptTags.length; i++) {
|
for (let i = 0; i < scriptTags.length; i++) {
|
||||||
const scriptTag = scriptTags[i];
|
const scriptTag = scriptTags[i];
|
||||||
const code = scriptTag.textContent;
|
const code = scriptTag.textContent;
|
||||||
_status("[ASYNC_PLUGIN_1] Transpiling script #" + (i + 1) + " of length " + Math.round(code.length / 1000) + "k...");
|
_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, {
|
const output = Babel.transform(code, {
|
||||||
plugins: []
|
plugins: []
|
||||||
});
|
});
|
||||||
scriptTag.textContent = output.code;
|
scriptTag.textContent = output.code;
|
||||||
|
await wait(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
_status("[ASYNC_PLUGIN_1] Job complete!");
|
_status("[ASYNC_PLUGIN_1] Job complete!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user