aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/producthunt/webview.js
diff options
context:
space:
mode:
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}