From 646cc12d14cc38e6b1c8ecc56c58d932b9e4e37e Mon Sep 17 00:00:00 2001 From: wjcjttl Date: Sat, 26 Oct 2024 15:37:49 -0400 Subject: [PATCH] =?UTF-8?q?fe:=20=E5=A6=82=E6=9E=9C=E6=9C=89=E6=9C=AA?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=9A=84=E7=AD=BE=E5=88=B0=EF=BC=8C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9C=89=E6=9C=AA=E8=AF=BB=E6=B6=88=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/i18n/en.json | 1 + resource/i18n/zh-CN.json | 1 + resource/schemas/NexusPHP/config.json | 4 ++++ resource/sites/crabpt.vip/config.json | 4 ++++ resource/sites/cyanbug.net/config.json | 4 ++++ resource/sites/hdarea.club/config.json | 9 +++++++++ resource/sites/hdsky.me/config.json | 9 +++++++++ resource/sites/hhanclub.top/config.json | 3 ++- resource/sites/open.cd/config.json | 9 +++++++++ resource/sites/pt.btschool.club/config.json | 11 +++++++++++ resource/sites/qingwapt.com/config.json | 4 ++++ resource/sites/totheglory.im/config.json | 4 ++++ resource/sites/www.haidan.video/config.json | 4 ++++ src/options/views/Home.vue | 17 +++++++++++++---- src/options/views/UserDataTimeline.vue | 3 ++- 15 files changed, 81 insertions(+), 6 deletions(-) diff --git a/resource/i18n/en.json b/resource/i18n/en.json index 93f375816..17c736e17 100644 --- a/resource/i18n/en.json +++ b/resource/i18n/en.json @@ -178,6 +178,7 @@ "selectColumns": "Select Columns", "selectedTags": "Selected Tags", "week": "Expressed in weeks", + "showNotAttended": "Show not attended", "timeline": "Time line", "settings": "Settings", "statistic": "Statistic", diff --git a/resource/i18n/zh-CN.json b/resource/i18n/zh-CN.json index c0ebf1909..5a787c913 100644 --- a/resource/i18n/zh-CN.json +++ b/resource/i18n/zh-CN.json @@ -175,6 +175,7 @@ "selectColumns": "过滤列", "selectedTags": "标签分组过滤", "week": "时间显示为周数", + "showNotAttended": "未签到的站点", "timeline": "时间轴", "settings": "参数", "statistic": "数据图表", diff --git a/resource/schemas/NexusPHP/config.json b/resource/schemas/NexusPHP/config.json index d5de48c62..e103cfbd5 100644 --- a/resource/schemas/NexusPHP/config.json +++ b/resource/schemas/NexusPHP/config.json @@ -81,6 +81,10 @@ "messageCount": { "selector": ["td[style*='background: red'] a[href*='messages.php']", "div[style*='background: red'] a[href*='messages.php']"], "filters": ["query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0"] + }, + "notAttended": { + "selector": ["a.faqlink"], + "filters": ["query.text().match(/(签到得|簽到得|Attend today|今日签到|立即签到)/)", "(query && query.length>=1)?1:0"] } } }, diff --git a/resource/sites/crabpt.vip/config.json b/resource/sites/crabpt.vip/config.json index fca6f543b..cdd90d62c 100644 --- a/resource/sites/crabpt.vip/config.json +++ b/resource/sites/crabpt.vip/config.json @@ -163,6 +163,10 @@ "query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0" ] + }, + "notAttended": { + "selector": ["a[class*='faqlink']"], + "filters": ["query.text().match(/\\[(签到得|簽到得|Attend)/)", "(query && query.length>=1)?1:0"] } } }, diff --git a/resource/sites/cyanbug.net/config.json b/resource/sites/cyanbug.net/config.json index e79f28724..a3aedf141 100644 --- a/resource/sites/cyanbug.net/config.json +++ b/resource/sites/cyanbug.net/config.json @@ -166,6 +166,10 @@ "query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0" ] + }, + "notAttended": { + "selector": ["a[href*='attendance.php']"], + "filters": ["query.text().match(/(签到得|簽到得|\\[Attend)/)", "(query && query.length>=1)?1:0"] } } }, diff --git a/resource/sites/hdarea.club/config.json b/resource/sites/hdarea.club/config.json index 11088f9c3..f991c4c3e 100644 --- a/resource/sites/hdarea.club/config.json +++ b/resource/sites/hdarea.club/config.json @@ -290,6 +290,15 @@ "filters": [ "query[0].childNodes[0].textContent" ] } } + }, + "userBaseInfo": { + "merge": true, + "fields": { + "notAttended": { + "selector": ["a[href*='#'] font"], + "filters": ["['[签到]', '[Sign in]', '[簽到]'].includes(query.text())?1:0"] + } + } } } } diff --git a/resource/sites/hdsky.me/config.json b/resource/sites/hdsky.me/config.json index 47b4d82b2..861509e5a 100644 --- a/resource/sites/hdsky.me/config.json +++ b/resource/sites/hdsky.me/config.json @@ -188,6 +188,15 @@ } }, "selectors": { + "userBaseInfo": { + "merge": true, + "fields": { + "notAttended": { + "selector": ["a#showup"], + "filters": ["['签到', 'Show Up', '簽到'].includes(query.text())?1:0"] + } + } + }, "/torrents.php": { "merge": true, "fields": { diff --git a/resource/sites/hhanclub.top/config.json b/resource/sites/hhanclub.top/config.json index d1967e28b..6e954382d 100644 --- a/resource/sites/hhanclub.top/config.json +++ b/resource/sites/hhanclub.top/config.json @@ -90,7 +90,8 @@ "messageCount": { "selector": ["div.w-full > a[href='messages.php']"], "filters": ["query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0"] - } + }, + "notAttended": { } } }, "userExtendInfo": { diff --git a/resource/sites/open.cd/config.json b/resource/sites/open.cd/config.json index dd0259bd9..831fb1e74 100644 --- a/resource/sites/open.cd/config.json +++ b/resource/sites/open.cd/config.json @@ -193,6 +193,15 @@ }] }], "selectors": { + "userBaseInfo": { + "merge": true, + "fields": { + "notAttended": { + "selector": ["a[href*='#']"], + "filters": ["['签到', 'ShowUP', '簽到'].includes(query.text())?1:0"] + } + } + }, "userExtendInfo": { "merge": true, "fields": { diff --git a/resource/sites/pt.btschool.club/config.json b/resource/sites/pt.btschool.club/config.json index 71b735cdf..4ff2b107a 100644 --- a/resource/sites/pt.btschool.club/config.json +++ b/resource/sites/pt.btschool.club/config.json @@ -75,6 +75,17 @@ "seedingPoints": "1000000", "privilege": "十个邀请名额;发送邀请" }], + "selectors": { + "userBaseInfo": { + "merge": true, + "fields": { + "notAttended": { + "selector": ["a[href*='index.php?action=addbonus'] font"], + "filters": ["['每日签到', 'Sign in every day'].includes(query.text())?1:0"] + } + } + } + }, "searchEntryConfig": { "area": [ { diff --git a/resource/sites/qingwapt.com/config.json b/resource/sites/qingwapt.com/config.json index 4b997cb72..370203573 100644 --- a/resource/sites/qingwapt.com/config.json +++ b/resource/sites/qingwapt.com/config.json @@ -162,6 +162,10 @@ "query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0" ] + }, + "notAttended": { + "selector": ["a[class*='faqlink']"], + "filters": ["query.text().match(/\\[(签到得|簽到得|Attend)/)", "(query && query.length>=1)?1:0"] } } }, diff --git a/resource/sites/totheglory.im/config.json b/resource/sites/totheglory.im/config.json index ad42ca4ba..79ed54612 100644 --- a/resource/sites/totheglory.im/config.json +++ b/resource/sites/totheglory.im/config.json @@ -261,6 +261,10 @@ "messageCount": { "selector": ["td[style*='background'] > b > a[href*='messages.php'], a[href='#notice']"], "filters": ["query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0"] + }, + "notAttended": { + "selector": ["a#signed b"], + "filters": ["['签到', 'Check-in', '출석하기'].includes(query.text())?1:0"] } } }, diff --git a/resource/sites/www.haidan.video/config.json b/resource/sites/www.haidan.video/config.json index 2889b612f..80b82d5f3 100644 --- a/resource/sites/www.haidan.video/config.json +++ b/resource/sites/www.haidan.video/config.json @@ -192,6 +192,10 @@ "classPoints": { "selector": ["a[href='classpoint.php']+span"], "filters": ["query.text().replace(/\\D/g,'')", "query ? parseInt(query) : 0"] + }, + "notAttended": { + "selector": ["input#modalBtn"], + "filters": ["query.length>0 && ['每日打卡'].includes(query[0].value)?1:0"] } } } diff --git a/src/options/views/Home.vue b/src/options/views/Home.vue index 442d8912f..9e36254e4 100644 --- a/src/options/views/Home.vue +++ b/src/options/views/Home.vue @@ -51,6 +51,8 @@ @change="updateViewOptions"> + @@ -91,12 +93,13 @@ +