Migrate built-in extensions to use manifest-based activate hooks (#5435)

* Convert jQuery/IIFE wrappers to exported init() functions and register activate hooks in 8 extension manifests

* Convert remaining extensions to exported init() with activate hooks and await initExtensions()

- Convert jQuery/IIFE wrappers to exported init() functions in expressions, memory, quick-reply, regex, stable-diffusion, translate, tts, and vectors extensions

- Register init functions as activate hooks in extension manifests

- Properly await async initExtensions() in firstLoadInit()

* Fix eslint

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
This commit is contained in:
Wolfsblvt
2026-04-09 22:49:55 +02:00
committed by GitHub
parent fb915b4321
commit f3521e7007
29 changed files with 87 additions and 44 deletions
@@ -5470,7 +5470,7 @@ function registerFunctionTool() {
});
}
jQuery(async () => {
export async function init() {
await addSDGenButtons();
const getSelectEnumProvider = (id, text) => () => Array.from(document.querySelectorAll(`#${id} > [value]`)).map(x => new SlashCommandEnumValue(x.getAttribute('value'), text ? x.textContent : null));
@@ -5977,4 +5977,4 @@ jQuery(async () => {
t`Character's negative Image Generation prompt prefix`,
);
}
});
}