blob: bd2bb1c22870c9ee2a75d9d0323a73015c173d9a [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 CCExtraInfoProfilePerForumStatsHandler extends CssSelectorNodeWatcherScriptHandler<CCExtraInfoMainOptions> {
6 cssSelector =
7 'ec-unified-user .scTailwindUser_profileUserprofilesection sc-tailwind-shared-activity-chart';
8
9 onMutatedNode({ node }: NodeMutation) {
10 this.options.extraInfo.injectPerForumStatsIfEnabled(node);
11 }
12}