aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/guilded
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-05-10 10:41:58 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2020-05-10 10:41:58 +0200
commitd927902163200b9ab30f27a9d7919abf0811c727 (patch)
tree237c8b657811d30f014aca8b414319d5eef17e74 /uncompressed/guilded
parentAdd create script (diff)
parentMerge pull request #153 from dnlnrs/master (diff)
downloadferdium-recipes-d927902163200b9ab30f27a9d7919abf0811c727.tar.gz
ferdium-recipes-d927902163200b9ab30f27a9d7919abf0811c727.tar.zst
ferdium-recipes-d927902163200b9ab30f27a9d7919abf0811c727.zip
Merge branch 'master' of https://github.com/getferdi/recipes
Diffstat (limited to 'uncompressed/guilded')
-rw-r--r--uncompressed/guilded/README.md8
-rw-r--r--uncompressed/guilded/icon.pngbin0 -> 13670 bytes
-rw-r--r--uncompressed/guilded/icon.svg9
-rw-r--r--uncompressed/guilded/index.js3
-rw-r--r--uncompressed/guilded/package.json14
-rw-r--r--uncompressed/guilded/webview.js15
6 files changed, 49 insertions, 0 deletions
diff --git a/uncompressed/guilded/README.md b/uncompressed/guilded/README.md
new file mode 100644
index 0000000..caba8cf
--- /dev/null
+++ b/uncompressed/guilded/README.md
@@ -0,0 +1,8 @@
1# Guilded for Ferdi
2This is the unofficial Ferdi recipe for Guilded, it only supports the current server.
3
4### Release notes
51.0.0: First version
6
7### How to create your own Ferdi recipes:
8* [Read the documentation](https://github.com/getferdi/recipes/blob/master/docs/integration.md) \ No newline at end of file
diff --git a/uncompressed/guilded/icon.png b/uncompressed/guilded/icon.png
new file mode 100644
index 0000000..e2cd5ae
--- /dev/null
+++ b/uncompressed/guilded/icon.png
Binary files differ
diff --git a/uncompressed/guilded/icon.svg b/uncompressed/guilded/icon.svg
new file mode 100644
index 0000000..199d4a5
--- /dev/null
+++ b/uncompressed/guilded/icon.svg
@@ -0,0 +1,9 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="1024px" height="1024px" viewBox="0 0 136 129" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <!-- Generator: Sketch 56.2 (81672) - https://sketch.com -->
4 <title>Logomark / Guilded-Wordmark-Black</title>
5 <desc>Created with Sketch.</desc>
6 <g id="Logomark-/-Guilded-Wordmark-Black" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7 <path d="M47.8903288,48.2641509 C47.8903288,48.2641509 47.9503286,56.8036226 52.3351089,65.6355094 C56.8398888,74.1369434 63.0510609,79.5977358 68.175038,81.7730189 C73.4694143,79.2981887 78.5837914,75.0023019 81.3749789,70.3735849 L66.840644,70.3735849 C63.0798608,67.2568679 60.1206741,62.0861132 59.4414771,56.109434 L102.079686,56.109434 C99.9772956,65.718717 95.5157156,74.4578868 91.2653346,80.023283 C85.3658754,87.739919 77.3664831,93.6292832 68.2062379,97 L68.0718385,97 C52.7791069,90.9068302 44.5519438,81.309434 39.1231681,70.480566 C35.6407837,63.5410566 32,50.9410566 32,34 L104,34 C104.011637,38.7709414 103.690875,43.5370029 103.039682,48.2641509 L47.8903288,48.2641509 Z" id="Path" fill="#111820" fill-rule="nonzero"></path>
8 </g>
9</svg> \ No newline at end of file
diff --git a/uncompressed/guilded/index.js b/uncompressed/guilded/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/uncompressed/guilded/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/uncompressed/guilded/package.json b/uncompressed/guilded/package.json
new file mode 100644
index 0000000..fbb7eda
--- /dev/null
+++ b/uncompressed/guilded/package.json
@@ -0,0 +1,14 @@
1{
2 "id": "guilded",
3 "name": "Guilded",
4 "version": "1.0.0",
5 "description": "Guilded",
6 "main": "index.js",
7 "author": "Jake Lee <ferdi@jakelee.co.uk>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://www.guilded.gg/",
11 "hasTeamId": false,
12 "hasNotificationSound": true
13 }
14}
diff --git a/uncompressed/guilded/webview.js b/uncompressed/guilded/webview.js
new file mode 100644
index 0000000..371fac8
--- /dev/null
+++ b/uncompressed/guilded/webview.js
@@ -0,0 +1,15 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 var unread = 0
6 const notificationBadge = document.getElementsByClassName('NavSelectorItem-unread-badge')[0]
7 if (notificationBadge != undefined) {
8 const innerBadge = notificationBadge.getElementsByClassName('BadgeV2-count')[0]
9 unread = innerBadge.innerText;
10 }
11 Franz.setBadge(parseInt(unread, 10));
12 };
13
14 Franz.loop(getMessages);
15}; \ No newline at end of file