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