blob: 98f40f4c701873e985c5fd1e354d98927f322e55 [file] [log] [blame]
import CssSelectorNodeWatcherHandler from '../../../../../infrastructure/presentation/nodeWatcher/handlers/CssSelectorHandler.adapter';
import { NodeMutation } from '../../../../../presentation/nodeWatcher/NodeWatcherHandler';
import ExtraInfo from '../../../core';
/** Inject abuse info chip in profiles. */
export default class CCExtraInfoProfileAbuseChipsHandler extends CssSelectorNodeWatcherHandler {
cssSelector = 'ec-unified-user .scTailwindUser_profileUsercardmain';
constructor(private extraInfo: ExtraInfo) {
super();
}
onMutatedNode({ node }: NodeMutation) {
this.extraInfo.injectAbuseChipsAtProfileIfEnabled(node);
}
}