diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 44a553ea..ae657b39 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1020,6 +1020,8 @@ function getPrompts(prompts) { promptsToMake = applyPermuteOperator(promptsToMake) promptsToMake = applySetOperator(promptsToMake) + PLUGINS['GET_PROMPTS_HOOK'].forEach(fn => { promptsToMake = fn(promptsToMake) }) + return promptsToMake } diff --git a/ui/media/js/plugins.js b/ui/media/js/plugins.js index 3a8bd4a3..2c39ebb8 100644 --- a/ui/media/js/plugins.js +++ b/ui/media/js/plugins.js @@ -25,6 +25,7 @@ const PLUGINS = { * }) */ IMAGE_INFO_BUTTONS: [], + GET_PROMPTS_HOOK: [], MODIFIERS_LOAD: [], TASK_CREATE: [], OUTPUTS_FORMATS: new ServiceContainer(