From 562520bee4a3c0d7a58a5768020d63c69beaf15c Mon Sep 17 00:00:00 2001 From: manone <184355540+manone2077@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:31:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E6=96=B0=E7=AB=99?= =?UTF-8?q?=20LustHive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/sites/lusthive.org/config.json | 60 +++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 resource/sites/lusthive.org/config.json diff --git a/resource/sites/lusthive.org/config.json b/resource/sites/lusthive.org/config.json new file mode 100644 index 000000000..b790ab532 --- /dev/null +++ b/resource/sites/lusthive.org/config.json @@ -0,0 +1,60 @@ +{ + "name": "LustHive", + "timezoneOffset": "+0800", + "schema": "Common", + "url": "https://lusthive.org/", + "description": "你也喜欢LustHive 对吧?", + "icon": "https://lusthive.org/favicon.ico", + "tags": [ + "综合", + "9KG" + ], + "host": "lusthive.org", + "collaborator": "manone", + "selectors": { + "userBaseInfo": { + "page": "/", + "fields": { + "id": { + "selector": ["#nav_userinfo a"], + "attribute": "href", + "filters": ["query ? query.getQueryString('id'):''"] + }, + "name": { + "selector": [".username[href*='user.php']"] + }, + "bonusPerHour": { + "value": "N/A" + }, + "levelName": { + "selector": ["li:contains('Class:')"], + "filters": [ + "query.text()" + ] + } + } + }, + "userExtendInfo": { + "page": "/user.php?id=$user.id$", + "fields": { + "uploaded": { + "selector": ["span.stat:eq(1)"], + "attribute": "title", + "filters": ["parseInt(query)"] + }, + "downloaded": { + "selector": ["span.stat:eq(3)"], + "attribute": "title", + "filters": ["parseInt(query)"] + }, + "ratio": { + "selector": ["span.stat:eq(4)"] + }, + "joinTime": { + "selector": ["ul.stats.nobullet li span"], + "filters": ["query.attr('title')||query.text()", "dateTime(query).isValid()?dateTime(query).valueOf():query"] + } + } + } + } +} From c87bbbd60f8998e0ce9b13d510bc4223b363cee3 Mon Sep 17 00:00:00 2001 From: manone <184355540+manone2077@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:06:38 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(crabpt):=20=E8=9F=B9=E9=BB=84=E5=A0=A1?= =?UTF-8?q?=E7=9C=8B=E4=B8=8D=E5=88=B0=E6=80=BB=E9=AD=94=E5=8A=9B=20?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/sites/crabpt.vip/config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/resource/sites/crabpt.vip/config.json b/resource/sites/crabpt.vip/config.json index ebbdfc192..b2d28f70a 100644 --- a/resource/sites/crabpt.vip/config.json +++ b/resource/sites/crabpt.vip/config.json @@ -206,6 +206,7 @@ "bonus": { "selector": [ "td.rowhead:contains('蟹币') + td", + "td.rowhead:contains('魔力值') + td", "td.rowfollow:contains('蟹币值')", "td.rowhead:contains('bonus') + td" ],