diff options
Diffstat (limited to 'uncompressed/googlemeet')
-rw-r--r-- | uncompressed/googlemeet/README.md | 12 | ||||
-rw-r--r-- | uncompressed/googlemeet/icon.png | bin | 0 -> 94137 bytes | |||
-rw-r--r-- | uncompressed/googlemeet/icon.svg | 53 | ||||
-rw-r--r-- | uncompressed/googlemeet/index.js | 6 | ||||
-rw-r--r-- | uncompressed/googlemeet/package.json | 13 | ||||
-rw-r--r-- | uncompressed/googlemeet/service.css | 5 | ||||
-rw-r--r-- | uncompressed/googlemeet/webview.js | 43 |
7 files changed, 132 insertions, 0 deletions
diff --git a/uncompressed/googlemeet/README.md b/uncompressed/googlemeet/README.md new file mode 100644 index 0000000..150d988 --- /dev/null +++ b/uncompressed/googlemeet/README.md | |||
@@ -0,0 +1,12 @@ | |||
1 | # information | ||
2 | Google Meet Recipe for @getferdi 🥳 Download Ferdi at https://getferdi.com/ | ||
3 | |||
4 | # how to import these recipes to your ferdi | ||
5 | 1. Clone this repo to your computer | ||
6 | 2. Rename this repo to a simple name like "gmeet" | ||
7 | 3. 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 | ||
11 | 4. Reload Ferdi | ||
12 | 5. Navigate to your "add service" section in Ferdi and added to yours. | ||
diff --git a/uncompressed/googlemeet/icon.png b/uncompressed/googlemeet/icon.png new file mode 100644 index 0000000..12a85fa --- /dev/null +++ b/uncompressed/googlemeet/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/googlemeet/icon.svg b/uncompressed/googlemeet/icon.svg new file mode 100644 index 0000000..5fc0a19 --- /dev/null +++ b/uncompressed/googlemeet/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/googlemeet/index.js b/uncompressed/googlemeet/index.js new file mode 100644 index 0000000..97c6a73 --- /dev/null +++ b/uncompressed/googlemeet/index.js | |||
@@ -0,0 +1,6 @@ | |||
1 | module.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/googlemeet/package.json b/uncompressed/googlemeet/package.json new file mode 100644 index 0000000..1c684db --- /dev/null +++ b/uncompressed/googlemeet/package.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "id": "googlemeet", | ||
3 | "name": "Google Meet", | ||
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/googlemeet/service.css b/uncompressed/googlemeet/service.css new file mode 100644 index 0000000..b453fd4 --- /dev/null +++ b/uncompressed/googlemeet/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/googlemeet/webview.js b/uncompressed/googlemeet/webview.js new file mode 100644 index 0000000..8e91418 --- /dev/null +++ b/uncompressed/googlemeet/webview.js | |||
@@ -0,0 +1,43 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | const { | ||
4 | remote | ||
5 | } = require('electron'); | ||
6 | |||
7 | const path = require('path'); | ||
8 | |||
9 | const webContents = remote.getCurrentWebContents(); | ||
10 | const { | ||
11 | session | ||
12 | } = webContents; | ||
13 | |||
14 | window.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 | |||
22 | module.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 | }; | ||