Adrià Vilanova MartÃnez | 66836fd | 2024-05-04 22:43:06 +0200 | [diff] [blame] | 1 | import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler'; |
| 2 | import { NodeMutation } from '../../../../common/nodeWatcher/NodeWatcherHandler'; |
| 3 | import { CCExtraInfoMainOptions } from '../../scripts/ccExtraInfoMain.script'; |
| 4 | |
| 5 | export 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 | } |