diff --git a/public/index.html b/public/index.html
index 751cce6b3..bca9823f9 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4319,7 +4319,9 @@
diff --git a/public/script.js b/public/script.js
index 38ed270cd..6cf82dc27 100644
--- a/public/script.js
+++ b/public/script.js
@@ -279,6 +279,7 @@ export {
default_ch_mes,
extension_prompt_types,
mesForShowdownParse,
+ characterGroupOverlay,
printCharacters,
isOdd,
countOccurrences,
@@ -1343,19 +1344,19 @@ async function printCharacters(fullRefresh = false) {
favsToHotswap();
}
+export function characterToEntity(character, id) {
+ return { item: character, id, type: 'character' };
+}
+
+export function groupToEntity(group) {
+ return { item: group, id: group.id, type: 'group' };
+}
+
+export function tagToEntity(tag) {
+ return { item: structuredClone(tag), id: tag.id, type: 'tag', entities: [] };
+}
+
export function getEntitiesList({ doFilter = false, doSort = true } = {}) {
- function characterToEntity(character, id) {
- return { item: character, id, type: 'character' };
- }
-
- function groupToEntity(group) {
- return { item: group, id: group.id, type: 'group' };
- }
-
- function tagToEntity(tag) {
- return { item: structuredClone(tag), id: tag.id, type: 'tag', entities: [] };
- }
-
let entities = [
...characters.map((item, index) => characterToEntity(item, index)),
...groups.map(item => groupToEntity(item)),
diff --git a/public/scripts/BulkEditOverlay.js b/public/scripts/BulkEditOverlay.js
index d11b56aa9..c2d3e44e8 100644
--- a/public/scripts/BulkEditOverlay.js
+++ b/public/scripts/BulkEditOverlay.js
@@ -10,6 +10,8 @@ import {
getPastCharacterChats,
getRequestHeaders,
printCharacters,
+ buildAvatarList,
+ characterToEntity,
} from '../script.js';
import { favsToHotswap } from './RossAscends-mods.js';
@@ -194,7 +196,8 @@ class BulkTagPopupHandler {