From a1aeef048bcc34b7e8c8dbc98f244aed45f0a013 Mon Sep 17 00:00:00 2001 From: Bright-W Date: Thu, 2 Nov 2023 22:17:38 +0800 Subject: [PATCH] fix(hhan): message count --- resource/sites/hhanclub.top/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resource/sites/hhanclub.top/config.json b/resource/sites/hhanclub.top/config.json index 040f0bbf2..449ace5d1 100644 --- a/resource/sites/hhanclub.top/config.json +++ b/resource/sites/hhanclub.top/config.json @@ -83,6 +83,16 @@ ], "collaborator": ["koal", "zhuweitung"], "selectors": { + "userBaseInfo": { + "merge": true, + "page": "/index.php", + "fields": { + "messageCount": { + "selector": ["div.w-full > a[href='messages.php']"], + "filters": ["query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0"] + } + } + }, "userExtendInfo": { "merge": true, "fields": {