From 6f5e4a00588aefdda7a5a1cfe70935870e7e234a Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 22 Sep 2020 20:56:48 +0200 Subject: Unpack recipes and update recipes icons (#292) Co-authored-by: Amine Mouafik --- uncompressed/googlemeet/README.md | 12 -------- uncompressed/googlemeet/icon.png | Bin 158454 -> 0 bytes uncompressed/googlemeet/icon.svg | 53 ----------------------------------- uncompressed/googlemeet/index.js | 17 ----------- uncompressed/googlemeet/package.json | 13 --------- uncompressed/googlemeet/service.css | 5 ---- uncompressed/googlemeet/webview.js | 43 ---------------------------- 7 files changed, 143 deletions(-) delete mode 100644 uncompressed/googlemeet/README.md delete mode 100644 uncompressed/googlemeet/icon.png delete mode 100644 uncompressed/googlemeet/icon.svg delete mode 100644 uncompressed/googlemeet/index.js delete mode 100644 uncompressed/googlemeet/package.json delete mode 100644 uncompressed/googlemeet/service.css delete mode 100644 uncompressed/googlemeet/webview.js (limited to 'uncompressed/googlemeet') diff --git a/uncompressed/googlemeet/README.md b/uncompressed/googlemeet/README.md deleted file mode 100644 index 150d988..0000000 --- a/uncompressed/googlemeet/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# information -Google Meet Recipe for @getferdi 🥳 Download Ferdi at https://getferdi.com/ - -# how to import these recipes to your ferdi -1. Clone this repo to your computer -2. Rename this repo to a simple name like "gmeet" -3. Copy your renamed folder to the following locations (if there are not available you must create it) -* Mac: ~/Library/Application Support/Ferdi/recipes/dev/ -* Windows: %appdata%/Ferdi/recipes/dev/ -* Linux: ~/.config/Ferdi/recipes/dev -4. Reload Ferdi -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 deleted file mode 100644 index a259b80..0000000 Binary files a/uncompressed/googlemeet/icon.png and /dev/null differ diff --git a/uncompressed/googlemeet/icon.svg b/uncompressed/googlemeet/icon.svg deleted file mode 100644 index 5fc0a19..0000000 --- a/uncompressed/googlemeet/icon.svg +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/uncompressed/googlemeet/index.js b/uncompressed/googlemeet/index.js deleted file mode 100644 index 9d84c17..0000000 --- a/uncompressed/googlemeet/index.js +++ /dev/null @@ -1,17 +0,0 @@ -var os = require('os') - -module.exports = Franz => - class GoogleMeet extends Franz { - modifyRequestHeaders() { - return [ - { - headers: { - 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(), - }, - requestFilters: { - urls: ['*://*/*'], - }, - }, - ]; - } - }; diff --git a/uncompressed/googlemeet/package.json b/uncompressed/googlemeet/package.json deleted file mode 100644 index 651b035..0000000 --- a/uncompressed/googlemeet/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "id": "googlemeet", - "name": "Google Meet", - "version": "1.0.4", - "description": "Google Meet", - "main": "index.js", - "author": "Patrick Thoelken ", - "license": "MIT", - "config": { - "serviceURL": "https://meet.google.com", - "hasNotificationSound": true - } -} diff --git a/uncompressed/googlemeet/service.css b/uncompressed/googlemeet/service.css deleted file mode 100644 index b453fd4..0000000 --- a/uncompressed/googlemeet/service.css +++ /dev/null @@ -1,5 +0,0 @@ -.app-wrapper-web .app { - width: 100% !important; - height: 100% !important; - top: 0 !important; -} diff --git a/uncompressed/googlemeet/webview.js b/uncompressed/googlemeet/webview.js deleted file mode 100644 index 8e91418..0000000 --- a/uncompressed/googlemeet/webview.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; - -const { - remote -} = require('electron'); - -const path = require('path'); - -const webContents = remote.getCurrentWebContents(); -const { - session -} = webContents; - -window.onload = () => { - const title = document.querySelector('.window-title').innerHTML; - - if (title && title.includes('Google Chrome 36+')) { - window.location.reload(); - } -}; - -module.exports = Franz => { - session.flushStorageData(); - session.clearStorageData({ - storages: ['serviceworkers'] - }); - - const getMessages = function getMessages() { - const elements = document.querySelectorAll('.CxUIE, .unread'); - let count = 0; - - for (let i = 0; i < elements.length; i += 1) { - if (elements[i].querySelectorAll('*[data-icon="muted"]').length === 0) { - count += 1; - } - } - - Franz.setBadge(count); - }; - - Franz.injectCSS(path.join(__dirname, 'service.css')); - Franz.loop(getMessages); -}; -- cgit v1.2.3-70-g09d2