blob: 7cc895a2c657d9d7642f8e73d89692bcdd17cfb5 [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutation } from '../../../../common/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);
}
}