From 58dc599ee12a63e20c067bb848ac9b795180f644 Mon Sep 17 00:00:00 2001 From: Saber Date: Tue, 14 Sep 2021 08:58:11 +0800 Subject: [PATCH] feat: AB add message count --- resource/sites/animebytes.tv/config.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resource/sites/animebytes.tv/config.json b/resource/sites/animebytes.tv/config.json index ae3b17ee7..23bd75279 100644 --- a/resource/sites/animebytes.tv/config.json +++ b/resource/sites/animebytes.tv/config.json @@ -28,6 +28,10 @@ "isLogged": { "selector": ["a[href*='/user/logout']"], "filters": ["query.length>0"] + }, + "messageCount": { + "selector": [".alertbar.message a[href*='inbox.php']"], + "filters": ["query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0"] } } },