From 6b9c3196193df37fa8fe25005aded6e01e61a07c Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Sun, 12 Sep 2021 08:46:35 +0530 Subject: New recipe: 'producthunt' (#687) --- recipes/producthunt/webview.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes/producthunt/webview.js (limited to 'recipes/producthunt/webview.js') 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 @@ +module.exports = (Ferdi) => { + const getMessages = function getMessages() { + Ferdi.setBadge(document.querySelector('[class*=header_] [class*=content_] [class*=actions_] [class*=notificationsButton_]').innerText) + } + + Ferdi.loop(getMessages) +} -- cgit v1.2.3-70-g09d2