Skip to content

Commit

Permalink
fix(ant): message count
Browse files Browse the repository at this point in the history
  • Loading branch information
Bright-W committed Dec 23, 2023
1 parent cac4dc3 commit 39c1ab3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resource/sites/anthelion.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"selector": ["a[href*='logout.php']"],
"filters": ["query.length>0"]
},
"messageCount": {
"selector": ["span.noty-notification"],
"filters": ["query.text().match(/have (\\d+|a) new/)", "(query && query.length>=2)?(query[1]=='a'?1:parseInt(query[1])):0"]
},
"bonusPerHour": {
"selector": ["h3.float_right"],
"filters": ["query.text().replace(',','').match(/making ([\\d]+) Orbs/)", "(query && query.length>=2)?parseFloat(query[1]):null"]
Expand Down

0 comments on commit 39c1ab3

Please sign in to comment.