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