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/ex-google-voice/icon.png | Bin 50641 -> 0 bytes uncompressed/ex-google-voice/icon.svg | 15 --------------- uncompressed/ex-google-voice/index.js | 3 --- uncompressed/ex-google-voice/package.json | 15 --------------- uncompressed/ex-google-voice/webview.js | 26 -------------------------- 5 files changed, 59 deletions(-) delete mode 100644 uncompressed/ex-google-voice/icon.png delete mode 100644 uncompressed/ex-google-voice/icon.svg delete mode 100644 uncompressed/ex-google-voice/index.js delete mode 100644 uncompressed/ex-google-voice/package.json delete mode 100644 uncompressed/ex-google-voice/webview.js (limited to 'uncompressed/ex-google-voice') diff --git a/uncompressed/ex-google-voice/icon.png b/uncompressed/ex-google-voice/icon.png deleted file mode 100644 index 80375a2..0000000 Binary files a/uncompressed/ex-google-voice/icon.png and /dev/null differ diff --git a/uncompressed/ex-google-voice/icon.svg b/uncompressed/ex-google-voice/icon.svg deleted file mode 100644 index df2a521..0000000 --- a/uncompressed/ex-google-voice/icon.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - diff --git a/uncompressed/ex-google-voice/index.js b/uncompressed/ex-google-voice/index.js deleted file mode 100644 index e8243fb..0000000 --- a/uncompressed/ex-google-voice/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = Franz => Franz; \ No newline at end of file diff --git a/uncompressed/ex-google-voice/package.json b/uncompressed/ex-google-voice/package.json deleted file mode 100644 index 8b98c80..0000000 --- a/uncompressed/ex-google-voice/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "ex-google-voice", - "name": "Google Voice", - "version": "0.3.2", - "description": "Google Voice", - "main": "index.js", - "author": "Behind The Math ", - "license": "MIT", - "repository": "https://github.com/BehindTheMath/franz-recipe-google-voice", - "config": { - "serviceURL": "https://www.google.com/voice", - "hasTeamID": false, - "message": "Google Voice gives you one number for all your phones, voicemail as easy as email, free US long distance, low rates on international calls, and many calling features like transcripts, call blocking, call screening, conference calling, SMS, and more." - } -} diff --git a/uncompressed/ex-google-voice/webview.js b/uncompressed/ex-google-voice/webview.js deleted file mode 100644 index 1a91455..0000000 --- a/uncompressed/ex-google-voice/webview.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -module.exports = Franz => { - function parseQuery(query) { - const el = document.querySelector(query); - return el && parseInt(el.innerHTML) || 0; - } - - function getMessages() { - const el = document.querySelector('.msgCount'); - let count; - - if (el) { - count = parseInt(el.innerHTML.replace(/[\(\) ]/gi, '')) || 0; - } else { - const count_messages = parseQuery('gv-nav-tab[tooltip="Messages"] div[aria-label="Unread count"]'); - const count_calls = parseQuery('gv-nav-tab[tooltip="Calls"] div[aria-label="Unread count"]'); - const count_voicemails = parseQuery('gv-nav-tab[tooltip="Voicemail"] div[aria-label="Unread count"]'); - count = count_messages + count_calls + count_voicemails; - } - - Franz.setBadge(count); - } - - Franz.loop(getMessages); -}; \ No newline at end of file -- cgit v1.2.3-70-g09d2