From a3f9c96cd4ddddb1151b52c765b75add559525fb Mon Sep 17 00:00:00 2001 From: Haoming Date: Sat, 12 Oct 2024 13:45:17 +0800 Subject: [PATCH] support ADetailer --- javascript/prompt_format_Configs.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/javascript/prompt_format_Configs.js b/javascript/prompt_format_Configs.js index 8322bbc..479a0db 100644 --- a/javascript/prompt_format_Configs.js +++ b/javascript/prompt_format_Configs.js @@ -59,6 +59,19 @@ class LeFormatterConfig { textareas.push(textArea); }); + // ADetailer + [ + "script_txt2img_adetailer_ad_main_accordion", + "script_img2img_adetailer_ad_main_accordion" + ].forEach((id) => { + const fields = document.getElementById(id)?.querySelectorAll('textarea'); + if (fields != null) + fields.forEach((textArea) => { + if (textArea.placeholder.length > 0) + textareas.push(textArea); + }); + }); + return textareas; }