aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
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
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')
-rw-r--r--recipes/producthunt/icon.svg1
-rw-r--r--recipes/producthunt/index.js1
-rw-r--r--recipes/producthunt/package.json11
-rw-r--r--recipes/producthunt/webview.js7
4 files changed, 20 insertions, 0 deletions
diff --git a/recipes/producthunt/icon.svg b/recipes/producthunt/icon.svg
new file mode 100644
index 0000000..c77d20b
--- /dev/null
+++ b/recipes/producthunt/icon.svg
@@ -0,0 +1 @@
<svg width="960pt" height="960pt" viewBox="0 0 960 960" xmlns="http://www.w3.org/2000/svg"><g fill="#da552f"><path d="M471.67 0h16.51c47.62.99 95.16 8.65 140.44 23.49 73.04 23.66 140.1 65.37 193.83 120.21 48.86 49.63 86.76 110.04 109.99 175.72 17.44 48.82 26.51 100.5 27.56 152.31v16.45c-1.14 59.02-12.87 117.87-35.21 172.53-27.65 68.2-71.37 129.78-126.49 178.54-63.36 56.39-141.99 95.47-225.26 111.73-28.27 5.56-57.03 8.44-85.83 9.02h-15.39c-66.94-1.25-133.66-16.28-194.32-44.72-68.37-31.76-128.94-80-175.43-139.33-47.67-60.7-80.4-133.06-94.19-209.02-4.9-26.2-7.26-52.82-7.88-79.45v-14.87c.73-35.9 5.06-71.76 13.66-106.63 19.88-82.2 62.29-158.69 121.08-219.43 56.81-58.89 128.86-103.03 207.31-126.39 42-12.69 85.78-19.22 129.62-20.16m-159.67 240v480h96v-144h132.97c12.13.1 24.29-.87 36.19-3.28 45.2-8.84 85.95-37.43 109.95-76.69 21.11-33.97 29.22-75.66 22.71-115.1-5.51-34.51-22.27-67.06-47.03-91.71-24.4-24.5-56.53-41.19-90.66-46.87-18.86-3.38-38.09-2.09-57.14-2.35h-202.99zM408 336c45.36 0 90.71-.01 136.06.01 24.43-.22 48.33 13.15 61.07 33.96 14.42 22.64 14.43 53.42 0 76.06-12.75 20.84-36.69 34.2-61.15 33.96-45.33.02-90.65.01-135.98.01v-144z"/></g><path fill="#fff" d="M312 240h202.99c19.05.26 38.28-1.03 57.14 2.35 34.13 5.68 66.26 22.37 90.66 46.87 24.76 24.65 41.52 57.2 47.03 91.71 6.51 39.44-1.6 81.13-22.71 115.1-24 39.26-64.75 67.85-109.95 76.69-11.9 2.41-24.06 3.38-36.19 3.28h-132.97v144h-96v-480m96 96v144c45.33 0 90.65.01 135.98-.01 24.46.24 48.4-13.12 61.15-33.96 14.43-22.64 14.42-53.42 0-76.06-12.74-20.81-36.64-34.18-61.07-33.96-45.35-.02-90.7-.01-136.06-.01z"/></svg> \ No newline at end of file
diff --git a/recipes/producthunt/index.js b/recipes/producthunt/index.js
new file mode 100644
index 0000000..7af3013
--- /dev/null
+++ b/recipes/producthunt/index.js
@@ -0,0 +1 @@
module.exports = Ferdi => Ferdi
diff --git a/recipes/producthunt/package.json b/recipes/producthunt/package.json
new file mode 100644
index 0000000..293f110
--- /dev/null
+++ b/recipes/producthunt/package.json
@@ -0,0 +1,11 @@
1{
2 "id": "producthunt",
3 "name": "Product Hunt",
4 "version": "1.0.0",
5 "license": "MIT",
6 "repository": "https://github.com/alexdevero/franz-producthunt-recipe",
7 "config": {
8 "serviceURL": "https://www.producthunt.com/",
9 "hasIndirectMessages": true
10 }
11}
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}