From 83adff501cc0926b93f3d27a07a5ecc1f704d642 Mon Sep 17 00:00:00 2001 From: wasu-code <61418403+wasu-code@users.noreply.github.com> Date: Thu, 31 Jul 2025 12:30:15 +0200 Subject: [PATCH 1/2] load extension dynamically every time it is used --- src/all/_dev.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/all/_dev.lua diff --git a/src/all/_dev.lua b/src/all/_dev.lua new file mode 100644 index 0000000..81b5929 --- /dev/null +++ b/src/all/_dev.lua @@ -0,0 +1,20 @@ +-- {"id": 23119210, "ver": "0.0.0", "libVer": "1.0.0", "author": "wasu-code"} + +-- Source URL of the external Lua file you're working on to load dynamically +-- ! **Change accordingly** +local URL = "http://192.168.1.23:5500/src/all/Reddit.lua" + +-- NOTE: This development extension uses the same ID as the target script. +-- This means downloaded chapters will be saved in the same directory +-- as the original plugin's chapters. + +-- Fetch and load the remote script as a Lua chunk +local extensionScript = GETDocument(URL):wholeText() +local extension = load(extensionScript, "devExt")() + +-- Override some fields (optional) so that they appear differently +local originalName = extension.name +extension.name = "!dev: " .. originalName + +-- Return extension's (modified) table +return extension \ No newline at end of file From b1fb4fd1d500c10ae0f93e929c4812d181eb9fee Mon Sep 17 00:00:00 2001 From: wasu-code <61418403+wasu-code@users.noreply.github.com> Date: Thu, 14 Aug 2025 22:17:11 +0200 Subject: [PATCH 2/2] move to custom language folder --- src/{all => dev}/_dev.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/{all => dev}/_dev.lua (91%) diff --git a/src/all/_dev.lua b/src/dev/_dev.lua similarity index 91% rename from src/all/_dev.lua rename to src/dev/_dev.lua index 81b5929..5866bb1 100644 --- a/src/all/_dev.lua +++ b/src/dev/_dev.lua @@ -2,7 +2,7 @@ -- Source URL of the external Lua file you're working on to load dynamically -- ! **Change accordingly** -local URL = "http://192.168.1.23:5500/src/all/Reddit.lua" +local URL = "http://192.168.1.23:5500/src/dev/extension-template.lua" -- NOTE: This development extension uses the same ID as the target script. -- This means downloaded chapters will be saved in the same directory