blob: d08db2164c1ccd5c2b7e1f1ad14028a4aa7a5795 [file] [log] [blame]
Adrià Vilanova Martínez66836fd2024-05-04 22:43:06 +02001import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
2import { NodeMutation } from '../../../../common/nodeWatcher/NodeWatcherHandler';
3import { 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}