diff options
Diffstat (limited to 'uncompressed')
-rw-r--r-- | uncompressed/clubhouse/.gitignore | 3 | ||||
-rw-r--r-- | uncompressed/clubhouse/README.md | 2 | ||||
-rw-r--r-- | uncompressed/clubhouse/icon.png | bin | 0 -> 82638 bytes | |||
-rw-r--r-- | uncompressed/clubhouse/icon.svg | 20 | ||||
-rw-r--r-- | uncompressed/clubhouse/index.js | 1 | ||||
-rw-r--r-- | uncompressed/clubhouse/package.json | 14 | ||||
-rw-r--r-- | uncompressed/clubhouse/webview.js | 10 | ||||
-rw-r--r-- | uncompressed/guilded/README.md | 8 | ||||
-rw-r--r-- | uncompressed/guilded/icon.png | bin | 0 -> 13670 bytes | |||
-rw-r--r-- | uncompressed/guilded/icon.svg | 9 | ||||
-rw-r--r-- | uncompressed/guilded/index.js | 3 | ||||
-rw-r--r-- | uncompressed/guilded/package.json | 14 | ||||
-rw-r--r-- | uncompressed/guilded/webview.js | 15 | ||||
-rw-r--r-- | uncompressed/hangouts/index.js | 20 | ||||
-rw-r--r-- | uncompressed/hangouts/package.json | 2 | ||||
-rw-r--r-- | uncompressed/hangoutschat/index.js | 10 | ||||
-rw-r--r-- | uncompressed/hangoutschat/package.json | 2 | ||||
-rw-r--r-- | uncompressed/whatsapp/index.js | 16 | ||||
-rw-r--r-- | uncompressed/whatsapp/package.json | 2 | ||||
-rw-r--r-- | uncompressed/zalo/package.json | 2 | ||||
-rw-r--r-- | uncompressed/zalo/webview.js | 9 |
21 files changed, 139 insertions, 23 deletions
diff --git a/uncompressed/clubhouse/.gitignore b/uncompressed/clubhouse/.gitignore new file mode 100644 index 0000000..e026003 --- /dev/null +++ b/uncompressed/clubhouse/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | .DS_Store | ||
2 | .idea | ||
3 | .vscode \ No newline at end of file | ||
diff --git a/uncompressed/clubhouse/README.md b/uncompressed/clubhouse/README.md new file mode 100644 index 0000000..3066666 --- /dev/null +++ b/uncompressed/clubhouse/README.md | |||
@@ -0,0 +1,2 @@ | |||
1 | # Clubhouse for Franz | ||
2 | This is a community Ferdi recipe for [Clubhouse](https://clubhouse.io) | ||
diff --git a/uncompressed/clubhouse/icon.png b/uncompressed/clubhouse/icon.png new file mode 100644 index 0000000..c91b19f --- /dev/null +++ b/uncompressed/clubhouse/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/clubhouse/icon.svg b/uncompressed/clubhouse/icon.svg new file mode 100644 index 0000000..eaf00fc --- /dev/null +++ b/uncompressed/clubhouse/icon.svg | |||
@@ -0,0 +1,20 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | ||
3 | <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||
4 | viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve"> | ||
5 | <style type="text/css"> | ||
6 | .st0{fill:#6515DD;} | ||
7 | .st1{fill:#FFFFFF;} | ||
8 | </style> | ||
9 | <rect x="-0.1" class="st0" width="1000.1" height="1000.1"/> | ||
10 | <g> | ||
11 | <g> | ||
12 | <g> | ||
13 | <path class="st1" d="M235.9,651c-24.7,0-44.9,20.1-44.9,44.9c0,24.7,20.1,44.9,44.9,44.9s44.9-20.1,44.9-44.9 | ||
14 | C280.8,671.1,260.7,651,235.9,651z"/> | ||
15 | </g> | ||
16 | <path class="st1" d="M788,259.4l-282.4,90v-89.1l-304.5,97.2v258.2l262.5-83.8v88.7l345.3-110.3l-93.5-91.4L788,259.4z | ||
17 | M463.6,487.7L243,558.1V388.3L463.6,318V487.7z M730.7,491.2L505.5,563V393.5L713,327.1l-47.5,100.3L730.7,491.2z"/> | ||
18 | </g> | ||
19 | </g> | ||
20 | </svg> | ||
diff --git a/uncompressed/clubhouse/index.js b/uncompressed/clubhouse/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/uncompressed/clubhouse/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdi => Ferdi; | |||
diff --git a/uncompressed/clubhouse/package.json b/uncompressed/clubhouse/package.json new file mode 100644 index 0000000..ce49f10 --- /dev/null +++ b/uncompressed/clubhouse/package.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "id": "clubhouse", | ||
3 | "name": "Clubhouse", | ||
4 | "version": "1.0.1", | ||
5 | "description": "Project Management for Software Teams", | ||
6 | "main": "index.js", | ||
7 | "author": "Daniele Lenares <daniele.lenares@gmail.com>", | ||
8 | "license": "MIT", | ||
9 | "repository": "https://github.com/dnlnrs/ferdi-recipe-clubhouse", | ||
10 | "config": { | ||
11 | "serviceURL": "https://app.clubhouse.io/{teamId}/dashboard", | ||
12 | "hasTeamId": true | ||
13 | } | ||
14 | } | ||
diff --git a/uncompressed/clubhouse/webview.js b/uncompressed/clubhouse/webview.js new file mode 100644 index 0000000..51cd09d --- /dev/null +++ b/uncompressed/clubhouse/webview.js | |||
@@ -0,0 +1,10 @@ | |||
1 | module.exports = (Ferdi) => { | ||
2 | function getMessages() { | ||
3 | const hasNotifications = document.querySelector('#notifications-link .badge').classList.contains('visible'); | ||
4 | if (hasNotifications) { | ||
5 | Ferdi.setBadge(0, 1); | ||
6 | } | ||
7 | } | ||
8 | |||
9 | Ferdi.loop(getMessages); | ||
10 | } | ||
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 | ||
2 | This is the unofficial Ferdi recipe for Guilded, it only supports the current server. | ||
3 | |||
4 | ### Release notes | ||
5 | 1.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 | |||
3 | module.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 | |||
3 | module.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 | ||
diff --git a/uncompressed/hangouts/index.js b/uncompressed/hangouts/index.js index a671025..8be0a8e 100644 --- a/uncompressed/hangouts/index.js +++ b/uncompressed/hangouts/index.js | |||
@@ -1,11 +1,15 @@ | |||
1 | var os = require('os') | 1 | module.exports = (Franz) => |
2 | |||
3 | module.exports = Franz => | ||
4 | class hangouts extends Franz { | 2 | class hangouts extends Franz { |
5 | overrideUserAgent() { | 3 | modifyRequestHeaders() { |
6 | if (os.platform() == 'linux') | 4 | return [ |
7 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" | 5 | { |
8 | else | 6 | headers: { |
9 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | 7 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(), |
8 | }, | ||
9 | requestFilters: { | ||
10 | urls: ['*://*/*'], | ||
11 | }, | ||
12 | }, | ||
13 | ]; | ||
10 | } | 14 | } |
11 | }; | 15 | }; |
diff --git a/uncompressed/hangouts/package.json b/uncompressed/hangouts/package.json index f0e0184..c6edbbd 100644 --- a/uncompressed/hangouts/package.json +++ b/uncompressed/hangouts/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "hangouts", | 2 | "id": "hangouts", |
3 | "name": "Hangouts", | 3 | "name": "Hangouts", |
4 | "version": "1.0.2", | 4 | "version": "1.0.4", |
5 | "description": "Hangouts", | 5 | "description": "Hangouts", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |
diff --git a/uncompressed/hangoutschat/index.js b/uncompressed/hangoutschat/index.js index 95e7fa5..819e06b 100644 --- a/uncompressed/hangoutschat/index.js +++ b/uncompressed/hangoutschat/index.js | |||
@@ -3,6 +3,16 @@ var os = require('os') | |||
3 | // just pass through Franz | 3 | // just pass through Franz |
4 | module.exports = Franz => | 4 | module.exports = Franz => |
5 | class HangoutsChat extends Franz { | 5 | class HangoutsChat extends Franz { |
6 | // Method to add headers to requests from Hangouts Chat's webview | ||
7 | modifyRequestHeaders() { | ||
8 | return [{ | ||
9 | headers: { 'origin': 'https://chat.google.com' }, | ||
10 | requestFilters: { | ||
11 | urls: ['*://*/*'] | ||
12 | } | ||
13 | }] | ||
14 | } | ||
15 | |||
6 | overrideUserAgent() { | 16 | overrideUserAgent() { |
7 | if (os.platform() == 'linux') | 17 | if (os.platform() == 'linux') |
8 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" | 18 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" |
diff --git a/uncompressed/hangoutschat/package.json b/uncompressed/hangoutschat/package.json index 40b0357..bcc58f9 100644 --- a/uncompressed/hangoutschat/package.json +++ b/uncompressed/hangoutschat/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "hangoutschat", | 2 | "id": "hangoutschat", |
3 | "name": "Hangouts Chat", | 3 | "name": "Hangouts Chat", |
4 | "version": "1.2.3", | 4 | "version": "1.3.0", |
5 | "description": "Hangouts Chat", | 5 | "description": "Hangouts Chat", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io> and Iván López (ilopmar)", | 7 | "author": "Stefan Malzner <stefan@adlk.io> and Iván López (ilopmar)", |
diff --git a/uncompressed/whatsapp/index.js b/uncompressed/whatsapp/index.js index f9b8099..504a70e 100644 --- a/uncompressed/whatsapp/index.js +++ b/uncompressed/whatsapp/index.js | |||
@@ -2,10 +2,16 @@ | |||
2 | 2 | ||
3 | module.exports = (Franz) => | 3 | module.exports = (Franz) => |
4 | class Messenger extends Franz { | 4 | class Messenger extends Franz { |
5 | overrideUserAgent() { | 5 | modifyRequestHeaders() { |
6 | return window.navigator.userAgent.replace( | 6 | return [ |
7 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, | 7 | { |
8 | "" | 8 | headers: { |
9 | ); | 9 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g,"").trim(), |
10 | }, | ||
11 | requestFilters: { | ||
12 | urls: ['*://*/*'], | ||
13 | } | ||
14 | } | ||
15 | ] | ||
10 | } | 16 | } |
11 | }; | 17 | }; |
diff --git a/uncompressed/whatsapp/package.json b/uncompressed/whatsapp/package.json index 5331ac9..19daf29 100644 --- a/uncompressed/whatsapp/package.json +++ b/uncompressed/whatsapp/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "whatsapp", | 2 | "id": "whatsapp", |
3 | "name": "WhatsApp", | 3 | "name": "WhatsApp", |
4 | "version": "2.0.2", | 4 | "version": "2.0.3", |
5 | "description": "WhatsApp", | 5 | "description": "WhatsApp", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |
diff --git a/uncompressed/zalo/package.json b/uncompressed/zalo/package.json index 8e2417c..183fc20 100644 --- a/uncompressed/zalo/package.json +++ b/uncompressed/zalo/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "zalo", | 2 | "id": "zalo", |
3 | "name": "Zalo", | 3 | "name": "Zalo", |
4 | "version": "1.0.0", | 4 | "version": "1.1.1", |
5 | "description": "Zalo", | 5 | "description": "Zalo", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "RoiArthurB <arthurbrugiere01@gmail.com>", | 7 | "author": "RoiArthurB <arthurbrugiere01@gmail.com>", |
diff --git a/uncompressed/zalo/webview.js b/uncompressed/zalo/webview.js index e20c6b5..0f360c3 100644 --- a/uncompressed/zalo/webview.js +++ b/uncompressed/zalo/webview.js | |||
@@ -3,12 +3,9 @@ | |||
3 | module.exports = Franz => { | 3 | module.exports = Franz => { |
4 | const getMessages = function getMessages() { | 4 | const getMessages = function getMessages() { |
5 | var unread = 0 | 5 | var unread = 0 |
6 | const notificationBadge = document.getElementsByClassName('notification-badge')[0] | 6 | const notificationBadge = document.getElementsByClassName('tab-red-dot').length; |
7 | if (notificationBadge != undefined) { | 7 | Franz.setBadge(notificationBadge); |
8 | unread = notificationBadge.innerText; | ||
9 | } | ||
10 | Franz.setBadge(parseInt(unread, 10)); | ||
11 | }; | 8 | }; |
12 | 9 | ||
13 | Franz.loop(getMessages); | 10 | Franz.loop(getMessages); |
14 | }; \ No newline at end of file | 11 | }; |