diff --git a/public/index.html b/public/index.html index 961a23b8b..d8e69730d 100644 --- a/public/index.html +++ b/public/index.html @@ -2262,7 +2262,10 @@ +
@@ -2673,6 +2676,7 @@
+
diff --git a/public/script.js b/public/script.js index 533d8597a..6669a3892 100644 --- a/public/script.js +++ b/public/script.js @@ -32,6 +32,7 @@ import { importEmbeddedWorldInfo, checkEmbeddedWorld, setWorldInfoButtonClass, + importWorldInfo, } from "./scripts/world-info.js"; import { @@ -227,6 +228,7 @@ export { extension_prompt_types, updateVisibleDivs, mesForShowdownParse, + printCharacters, } // API OBJECT FOR EXTERNAL WIRING @@ -805,6 +807,9 @@ async function printCharacters() { template.find('img').attr('src', this_avatar); template.find('.avatar').attr('title', item.avatar); template.find('.ch_name').text(item.name); + if (power_user.show_card_avatar_urls) { + template.find('.ch_avatar_url').text(item.avatar); + } template.find('.ch_fav_icon').css("display", 'none'); template.toggleClass('is_fav', item.fav || item.fav == 'true'); template.find('.ch_fav').val(item.fav); @@ -7958,6 +7963,55 @@ $(document).ready(function () { restoreCaretPosition($(this).get(0), caretPosition); }); + $('#external_import_button').on('click', async () => { + const html = `

Enter the URL of the content to import

+ Supported sources:
+