Skip to content

Commit

Permalink
fix(MT): new UI
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Sep 23, 2023
1 parent 981ec5f commit 093d559
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions resource/sites/kp.m-team.cc/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,30 @@
}]
}],
"selectors": {
"userBaseInfo": {
"page": "/index",
"fields": {
"id": {
"selector": ["a[href^='/profile/detail/']:first"],
"attribute": "href",
"filters": ["query ? query.split('/').pop():''"]
},
"name": {
"selector": ["a[href^='/profile/detail/'] strong:first"]
},
"isLogged": {
"selector": ["a[href^='/mybonus']"],
"filters": ["query.length>0"]
},
"messageCount": {
"selector": ["a[href^='/message/'] sup"],
"attribute": "title",
"filters": ["query ? (query.length>=2) ? parseInt(query[0]) + parseInt(query[1]) : parseInt(query[0]) : 0"]
}
}
},
"userExtendInfo": {
"page": "/profile/detail/userid=$user.id",
"merge": true,
"fields": {
"uploaded": {
Expand Down Expand Up @@ -270,14 +293,11 @@
},
"bonusExtendInfo": {
"prerequisites": "!user.bonusPerHour",
"page": "/mybonus.php",
"page": "/mybonus",
"fields": {
"bonusPerHour": {
"selector": ["td:contains('您目前每小時合計可獲得'):last",
"td:contains('您目前每小时合计可获得'):last",
"td:contains('目前將會獲取'):last",
"td:contains('目前将会获取'):last"],
"filters": ["parseFloat(query.text().match(/[獲获][得取](\\d+(?:\\.\\d+)?)/)[1])"]
"selector": ["table.tablist td[rowspan='6']"],
"filters": ["parseFloat(query.text().match(/[\\d.]+/)[0])"]
}
}
}
Expand Down

1 comment on commit 093d559

@cddjr
Copy link

@cddjr cddjr commented on 093d559 Sep 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馒头回滚旧版了

Please sign in to comment.