diff options
author | 2021-09-12 08:46:35 +0530 | |
---|---|---|
committer | 2021-09-12 03:16:35 +0000 | |
commit | 6b9c3196193df37fa8fe25005aded6e01e61a07c (patch) | |
tree | aae26f3b9baaa3d709eafae12af895bb9655a8d0 /recipes/producthunt/webview.js | |
parent | New recipe: 'dingtalk' (fixes #416) (#686) (diff) | |
download | ferdium-recipes-6b9c3196193df37fa8fe25005aded6e01e61a07c.tar.gz ferdium-recipes-6b9c3196193df37fa8fe25005aded6e01e61a07c.tar.zst ferdium-recipes-6b9c3196193df37fa8fe25005aded6e01e61a07c.zip |
New recipe: 'producthunt' (#687)
Diffstat (limited to 'recipes/producthunt/webview.js')
-rw-r--r-- | recipes/producthunt/webview.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes/producthunt/webview.js b/recipes/producthunt/webview.js new file mode 100644 index 0000000..69dcc95 --- /dev/null +++ b/recipes/producthunt/webview.js | |||
@@ -0,0 +1,7 @@ | |||
1 | module.exports = (Ferdi) => { | ||
2 | const getMessages = function getMessages() { | ||
3 | Ferdi.setBadge(document.querySelector('[class*=header_] [class*=content_] [class*=actions_] [class*=notificationsButton_]').innerText) | ||
4 | } | ||
5 | |||
6 | Ferdi.loop(getMessages) | ||
7 | } | ||