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:
@@ -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}` : ''
|
||||
|
||||
Reference in New Issue
Block a user