changed observer callback

update names based on the element from the mutation event rather than checking the chatbox for unchecked messages each mutation
This commit is contained in:
zomo
2026-04-19 19:01:01 -05:00
parent 3b8c402873
commit 6218d6bad1
9 changed files with 272 additions and 165 deletions
+5
View File
@@ -14,6 +14,8 @@ export interface NameConfigInstance {
nameCount: number
}
export type UsernameExtraSuffix = (nameConfig: NameConfigInstance) => string
export const ignoreMod: boolean = false
export const nameImages = {
@@ -40,3 +42,6 @@ export const nameList: NameConfig[] = [
// image: 'personimage1',
// },
]
export const usernameExtraSuffix: UsernameExtraSuffix = nameConfig =>
nameConfig.nameCount > 0 ? `${nameConfig.nameCount + 1}` : ''