Skip to content

Commit

Permalink
fix(RL): message count
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Jul 12, 2023
1 parent e0462a0 commit 41bcdf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resource/sites/leaves.red/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
"name": {
"selector": ["a[href*='userdetails.php'][class*='Name']:first"],
"filters": ["query[0].firstChild.firstChild.nodeValue"]
},
"messageCount": {
"selector": ["a[href*='messages.php']:contains('新短讯!')", "a[href*='messages.php']:contains('new messages!')", "a[href*='messages.php']:contains('新短訊!')"],
"filters": ["query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0"]
}
}
},
Expand Down

0 comments on commit 41bcdf7

Please sign in to comment.