diff options
author | 2021-09-12 18:16:44 +0530 | |
---|---|---|
committer | 2021-09-12 12:46:44 +0000 | |
commit | 25ca79240255af73f94832a6a1fe9ba01a95ffcb (patch) | |
tree | 8a9f8edc8eacad905eaa15cfd93fc6734b1fdb2a /recipes/weekplan/webview.js | |
parent | New recipe: 'sococo' (#704) (diff) | |
download | ferdium-recipes-25ca79240255af73f94832a6a1fe9ba01a95ffcb.tar.gz ferdium-recipes-25ca79240255af73f94832a6a1fe9ba01a95ffcb.tar.zst ferdium-recipes-25ca79240255af73f94832a6a1fe9ba01a95ffcb.zip |
New recipe: 'weekplan' (#705)
Diffstat (limited to 'recipes/weekplan/webview.js')
-rw-r--r-- | recipes/weekplan/webview.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/weekplan/webview.js b/recipes/weekplan/webview.js new file mode 100644 index 0000000..5a8a8fb --- /dev/null +++ b/recipes/weekplan/webview.js | |||
@@ -0,0 +1,10 @@ | |||
1 | module.exports = Ferdi => { | ||
2 | getMessages = () => { | ||
3 | const events = document.querySelectorAll(".today")[0].getElementsByClassName('list')[0].getElementsByClassName('task-list')[0].getElementsByClassName('event-section')[0].getElementsByClassName('droppable')[0].children[0].childElementCount | ||
4 | const tasks = document.querySelectorAll(".today")[0].getElementsByClassName('list')[0].getElementsByClassName('task-list')[0].getElementsByClassName('task-section')[0].getElementsByClassName('droppable')[0].children[0].childElementCount | ||
5 | |||
6 | Ferdi.setBadge(events + tasks); | ||
7 | }; | ||
8 | |||
9 | Ferdi.loop(getMessages); | ||
10 | } | ||