aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/producthunt/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-09-12 08:46:35 +0530
committerLibravatar GitHub <noreply@github.com>2021-09-12 03:16:35 +0000
commit6b9c3196193df37fa8fe25005aded6e01e61a07c (patch)
treeaae26f3b9baaa3d709eafae12af895bb9655a8d0 /recipes/producthunt/webview.js
parentNew recipe: 'dingtalk' (fixes #416) (#686) (diff)
downloadferdium-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.js7
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 @@
1module.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}