blob: 482a45644ffe3c0dcd496b1c554524adfe09425c [file] [log] [blame]
Adrià Vilanova Martínez66836fd2024-05-04 22:43:06 +02001import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
Adrià Vilanova Martínez43c75202024-10-19 15:55:15 +02002import { NodeMutation } from '../../../../presentation/nodeWatcher/NodeWatcherHandler';
Adrià Vilanova Martínez66836fd2024-05-04 22:43:06 +02003import { CCExtraInfoMainOptions } from '../../scripts/ccExtraInfoMain.script';
4
5export default class CCExtraInfoProfileAbuseChipsHandler extends CssSelectorNodeWatcherScriptHandler<CCExtraInfoMainOptions> {
6 cssSelector = 'ec-unified-user .scTailwindUser_profileUsercardmain';
7
8 onMutatedNode({ node }: NodeMutation) {
9 this.options.extraInfo.injectAbuseChipsAtProfileIfEnabled(node);
10 }
11}