From 25e2d20789e7353c4696f11a4b0b7b7cb3c83b19 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Sun, 29 Dec 2024 23:29:41 +0800 Subject: [PATCH] add some flags --- docs/config.md | 15 +++++++++++++++ docs/index.md | 4 +++- injector.js | 4 ++-- postinit.js | 26 +++++--------------------- 4 files changed, 25 insertions(+), 24 deletions(-) create mode 100644 docs/config.md diff --git a/docs/config.md b/docs/config.md new file mode 100644 index 0000000..d1969b9 --- /dev/null +++ b/docs/config.md @@ -0,0 +1,15 @@ +## eaglercraftXopts and search parameters + +### noInitialModGui +- `processed.html?noInitialModGui=true` +or inside eaglercraftXopts + +disables the mod gui display on startup + + +### Adding mods +Set eaglercraftXopts.Mods to an array of mod urls. + +You can also use search parameters, eg: +- `processed.html?mod=https://example.com/mod.js` +- `processed.html?mod=https://example.com/mod.js&mod=https://example.com/mod2.js` \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 7ef3dcc..94e63a4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -10,4 +10,6 @@ EaglerForge Injector is a tool that uses regular expressions to attach itself to [Modding API documentation](apidoc/index.md) -[Compiling the client for EaglerForgeInjector](compiling_client.md) \ No newline at end of file +[Compiling the client for EaglerForgeInjector](compiling_client.md) + +[eaglercraftXopts and search parameters](config.md) \ No newline at end of file diff --git a/injector.js b/injector.js index 542b126..6237f1c 100644 --- a/injector.js +++ b/injector.js @@ -296,11 +296,11 @@ var main;(function(){` ` id="game_frame"> \