aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-02-23 21:27:24 +0100
committerLibravatar GitHub <noreply@github.com>2020-02-23 21:27:24 +0100
commita71833cd1e0764d1626d886baed756efe1fa4bad (patch)
tree37813338b32269185ca5c8c15838a87689833f0c /uncompressed
parentReview Custom Website URL validation (#47) (diff)
parentrepackaging (diff)
downloadferdium-recipes-a71833cd1e0764d1626d886baed756efe1fa4bad.tar.gz
ferdium-recipes-a71833cd1e0764d1626d886baed756efe1fa4bad.tar.zst
ferdium-recipes-a71833cd1e0764d1626d886baed756efe1fa4bad.zip
Merge pull request #46 from n-xlkt/feat/gmeet
Feat/gmeet
Diffstat (limited to 'uncompressed')
-rw-r--r--uncompressed/Google Meet/README.md12
-rw-r--r--uncompressed/Google Meet/icon.pngbin0 -> 94137 bytes
-rw-r--r--uncompressed/Google Meet/icon.svg53
-rw-r--r--uncompressed/Google Meet/index.js6
-rw-r--r--uncompressed/Google Meet/package.json13
-rw-r--r--uncompressed/Google Meet/service.css5
-rw-r--r--uncompressed/Google Meet/webview.js43
7 files changed, 132 insertions, 0 deletions
diff --git a/uncompressed/Google Meet/README.md b/uncompressed/Google Meet/README.md
new file mode 100644
index 0000000..150d988
--- /dev/null
+++ b/uncompressed/Google Meet/README.md
@@ -0,0 +1,12 @@
1# information
2Google Meet Recipe for @getferdi 🥳 Download Ferdi at https://getferdi.com/
3
4# how to import these recipes to your ferdi
51. Clone this repo to your computer
62. Rename this repo to a simple name like "gmeet"
73. Copy your renamed folder to the following locations (if there are not available you must create it)
8* Mac: ~/Library/Application Support/Ferdi/recipes/dev/
9* Windows: %appdata%/Ferdi/recipes/dev/
10* Linux: ~/.config/Ferdi/recipes/dev
114. Reload Ferdi
125. Navigate to your "add service" section in Ferdi and added to yours.
diff --git a/uncompressed/Google Meet/icon.png b/uncompressed/Google Meet/icon.png
new file mode 100644
index 0000000..12a85fa
--- /dev/null
+++ b/uncompressed/Google Meet/icon.png
Binary files differ
diff --git a/uncompressed/Google Meet/icon.svg b/uncompressed/Google Meet/icon.svg
new file mode 100644
index 0000000..5fc0a19
--- /dev/null
+++ b/uncompressed/Google Meet/icon.svg
@@ -0,0 +1,53 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="256px" height="297px" viewBox="0 0 256 297" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
3 <defs>
4 <linearGradient x1="26.0700788%" y1="68.0422365%" x2="74.9491057%" y2="19.2791755%" id="linearGradient-1">
5 <stop stop-color="#058B7E" offset="0%"></stop>
6 <stop stop-color="#058D80" offset="0%"></stop>
7 <stop stop-color="#058D7F" offset="100%"></stop>
8 </linearGradient>
9 <path d="M127.682686,0 C57.1657481,0 0,55.7909333 0,124.612267 C0,193.433916 57.1657481,249.224533 127.682686,249.224533 L127.954173,296.138272 C193.56002,258.867516 255.954173,209.119447 255.954173,124.612267 C255.954173,55.7909333 198.199941,0 127.682686,0 Z" id="path-2"></path>
10 <filter x="-0.4%" y="-0.3%" width="100.8%" height="100.7%" filterUnits="objectBoundingBox" id="filter-3">
11 <feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
12 <feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
13 <feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
14 </filter>
15 <path d="M127.682686,0 C57.1657481,0 0,55.7909333 0,124.612267 C0,193.433916 57.1657481,249.224533 127.682686,249.224533 L127.954173,296.138272 C193.56002,258.867516 255.954173,209.119447 255.954173,124.612267 C255.954173,55.7909333 198.199941,0 127.682686,0 Z" id="path-4"></path>
16 <filter x="-0.4%" y="-0.3%" width="100.8%" height="100.7%" filterUnits="objectBoundingBox" id="filter-5">
17 <feOffset dx="0" dy="-2" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
18 <feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
19 <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
20 </filter>
21 <path d="M127.682686,0 C57.1657481,0 0,55.7909333 0,124.612267 C0,193.433916 57.1657481,249.224533 127.682686,249.224533 L127.954173,296.138272 C193.56002,258.867516 255.954173,209.119447 255.954173,124.612267 C255.954173,55.7909333 198.199941,0 127.682686,0 Z" id="path-6"></path>
22 <linearGradient x1="30.0482935%" y1="27.302306%" x2="81.9404293%" y2="84.6402399%" id="linearGradient-8">
23 <stop stop-color="#000000" offset="0%"></stop>
24 <stop stop-color="#D8D8D8" stop-opacity="0" offset="100%"></stop>
25 </linearGradient>
26 <path d="M55.5801916,128.105402 L55.5801916,162.34398 C55.5801916,171.382993 62.9757472,178.778548 72.0147595,178.778548 L157.030779,178.778548 C166.069792,178.778548 173.465347,171.382993 173.465347,162.34398 L173.465347,140.721146 L207.124606,174.380405 L207.124606,128.105402 L55.5801916,128.105402 Z" id="path-9"></path>
27 <filter x="-1.0%" y="-3.0%" width="102.6%" height="111.8%" filterUnits="objectBoundingBox" id="filter-10">
28 <feOffset dx="1" dy="3" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
29 <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
30 </filter>
31 </defs>
32 <g>
33 <path d="M127.682686,0 C57.1657481,0 0,55.7909333 0,124.612267 C0,193.433916 57.1657481,249.224533 127.682686,249.224533 L127.954173,296.138272 C193.56002,258.867516 255.954173,209.119447 255.954173,124.612267 C255.954173,55.7909333 198.199941,0 127.682686,0 Z" fill="url(#linearGradient-1)"></path>
34 <g fill="black" fill-opacity="1">
35 <use filter="url(#filter-3)" xlink:href="#path-2"></use>
36 </g>
37 <g fill="black" fill-opacity="1">
38 <use filter="url(#filter-5)" xlink:href="#path-4"></use>
39 </g>
40 <g>
41 <mask id="mask-7" fill="white">
42 <use xlink:href="#path-6"></use>
43 </mask>
44 <g></g>
45 <polygon fill-opacity="0.21" fill="url(#linearGradient-8)" mask="url(#mask-7)" points="58.3180642 168.559565 167.355101 281.283951 311.894914 175.618212 207.440593 81.6987654 185.106647 119.970765"></polygon>
46 </g>
47 <g>
48 <use fill="black" fill-opacity="1" filter="url(#filter-10)" xlink:href="#path-9"></use>
49 <use fill="#F6F6F6" fill-rule="evenodd" xlink:href="#path-9"></use>
50 </g>
51 <path d="M207.124638,128.105402 L207.124638,81.6989235 L173.465379,115.28644 L173.465379,93.8668247 C173.465379,84.8274963 166.069823,77.4322568 157.030811,77.4322568 L72.0147911,77.4322568 C62.9757788,77.4322568 55.5802232,84.8274963 55.5802232,93.8668247 L55.5802232,128.105402 L207.124638,128.105402 Z" fill="#E2E2E2"></path>
52 </g>
53</svg>
diff --git a/uncompressed/Google Meet/index.js b/uncompressed/Google Meet/index.js
new file mode 100644
index 0000000..97c6a73
--- /dev/null
+++ b/uncompressed/Google Meet/index.js
@@ -0,0 +1,6 @@
1module.exports = Franz =>
2 class Gmail extends Franz {
3 overrideUserAgent() {
4 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0";
5 }
6 };
diff --git a/uncompressed/Google Meet/package.json b/uncompressed/Google Meet/package.json
new file mode 100644
index 0000000..0c3a5fe
--- /dev/null
+++ b/uncompressed/Google Meet/package.json
@@ -0,0 +1,13 @@
1{
2 "id": "Google Meet",
3 "name": "googlemeet",
4 "version": "1.0.1",
5 "description": "Google Meet",
6 "main": "index.js",
7 "author": "Patrick Thoelken <patrick.thoelken@outlook.com>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://meet.google.com",
11 "hasNotificationSound": true
12 }
13}
diff --git a/uncompressed/Google Meet/service.css b/uncompressed/Google Meet/service.css
new file mode 100644
index 0000000..b453fd4
--- /dev/null
+++ b/uncompressed/Google Meet/service.css
@@ -0,0 +1,5 @@
1.app-wrapper-web .app {
2 width: 100% !important;
3 height: 100% !important;
4 top: 0 !important;
5}
diff --git a/uncompressed/Google Meet/webview.js b/uncompressed/Google Meet/webview.js
new file mode 100644
index 0000000..8e91418
--- /dev/null
+++ b/uncompressed/Google Meet/webview.js
@@ -0,0 +1,43 @@
1"use strict";
2
3const {
4 remote
5} = require('electron');
6
7const path = require('path');
8
9const webContents = remote.getCurrentWebContents();
10const {
11 session
12} = webContents;
13
14window.onload = () => {
15 const title = document.querySelector('.window-title').innerHTML;
16
17 if (title && title.includes('Google Chrome 36+')) {
18 window.location.reload();
19 }
20};
21
22module.exports = Franz => {
23 session.flushStorageData();
24 session.clearStorageData({
25 storages: ['serviceworkers']
26 });
27
28 const getMessages = function getMessages() {
29 const elements = document.querySelectorAll('.CxUIE, .unread');
30 let count = 0;
31
32 for (let i = 0; i < elements.length; i += 1) {
33 if (elements[i].querySelectorAll('*[data-icon="muted"]').length === 0) {
34 count += 1;
35 }
36 }
37
38 Franz.setBadge(count);
39 };
40
41 Franz.injectCSS(path.join(__dirname, 'service.css'));
42 Franz.loop(getMessages);
43};