Skip to content

Commit

Permalink
fix(HDH): bonus per hour
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Aug 11, 2023
1 parent 42121c2 commit 41f9a3a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resource/sites/hdhome.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,17 @@
}
],
"selectors": {
"bonusExtendInfo": {
"prerequisites": "!user.bonusPerHour",
"page": "/mybonus.php",
"fields": {
"bonusPerHour": {
"selector": ["td.text h1:first ~ div"],
"filters": ["query.text().replace(/,/g,'').match(/[\\d.]+/g)",
"query.length == 10 ? parseFloat(query[0]) + parseFloat(query[5]) + parseFloat(query[8]) : parseFloat(query[0])"]
}
}
},
"/details.php": {
"merge": true,
"fields": {
Expand Down

0 comments on commit 41f9a3a

Please sign in to comment.