Skip to content

Commit

Permalink
feat: AB add message count
Browse files Browse the repository at this point in the history
  • Loading branch information
sabersalv authored and Rhilip committed Sep 21, 2021
1 parent 8031268 commit 58dc599
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resource/sites/animebytes.tv/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"isLogged": {
"selector": ["a[href*='/user/logout']"],
"filters": ["query.length>0"]
},
"messageCount": {
"selector": [".alertbar.message a[href*='inbox.php']"],
"filters": ["query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0"]
}
}
},
Expand Down

0 comments on commit 58dc599

Please sign in to comment.