blob: 482a45644ffe3c0dcd496b1c554524adfe09425c [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutation } from '../../../../presentation/nodeWatcher/NodeWatcherHandler';
import { CCExtraInfoMainOptions } from '../../scripts/ccExtraInfoMain.script';
export default class CCExtraInfoProfileAbuseChipsHandler extends CssSelectorNodeWatcherScriptHandler<CCExtraInfoMainOptions> {
cssSelector = 'ec-unified-user .scTailwindUser_profileUsercardmain';
onMutatedNode({ node }: NodeMutation) {
this.options.extraInfo.injectAbuseChipsAtProfileIfEnabled(node);
}
}