From 65b68b9b5976a07669aec1fdb69bd17b0ae95e72 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 20 Jun 2021 09:41:19 +0530 Subject: Renamed 'glowingbear' --> 'glowing-bear' and 'ex-google-voice' --> 'google-voide'. --- recipes/ex-google-voice/icon.png | Bin 5969 -> 0 bytes recipes/ex-google-voice/icon.svg | 1 - recipes/ex-google-voice/index.js | 3 --- recipes/ex-google-voice/package.json | 15 --------------- recipes/ex-google-voice/webview.js | 26 -------------------------- recipes/glowing-bear/LICENSE | 21 +++++++++++++++++++++ recipes/glowing-bear/icon.png | Bin 0 -> 16953 bytes recipes/glowing-bear/icon.svg | 1 + recipes/glowing-bear/index.js | 4 ++++ recipes/glowing-bear/package.json | 14 ++++++++++++++ recipes/glowing-bear/webview.js | 15 +++++++++++++++ recipes/glowingbear/LICENSE | 21 --------------------- recipes/glowingbear/icon.png | Bin 16953 -> 0 bytes recipes/glowingbear/icon.svg | 1 - recipes/glowingbear/index.js | 4 ---- recipes/glowingbear/package.json | 14 -------------- recipes/glowingbear/webview.js | 15 --------------- recipes/google-voice/icon.png | Bin 0 -> 5969 bytes recipes/google-voice/icon.svg | 1 + recipes/google-voice/index.js | 3 +++ recipes/google-voice/package.json | 15 +++++++++++++++ recipes/google-voice/webview.js | 26 ++++++++++++++++++++++++++ 22 files changed, 100 insertions(+), 100 deletions(-) delete mode 100644 recipes/ex-google-voice/icon.png delete mode 100644 recipes/ex-google-voice/icon.svg delete mode 100644 recipes/ex-google-voice/index.js delete mode 100644 recipes/ex-google-voice/package.json delete mode 100644 recipes/ex-google-voice/webview.js create mode 100644 recipes/glowing-bear/LICENSE create mode 100644 recipes/glowing-bear/icon.png create mode 100644 recipes/glowing-bear/icon.svg create mode 100644 recipes/glowing-bear/index.js create mode 100644 recipes/glowing-bear/package.json create mode 100644 recipes/glowing-bear/webview.js delete mode 100644 recipes/glowingbear/LICENSE delete mode 100644 recipes/glowingbear/icon.png delete mode 100644 recipes/glowingbear/icon.svg delete mode 100644 recipes/glowingbear/index.js delete mode 100644 recipes/glowingbear/package.json delete mode 100644 recipes/glowingbear/webview.js create mode 100644 recipes/google-voice/icon.png create mode 100644 recipes/google-voice/icon.svg create mode 100644 recipes/google-voice/index.js create mode 100644 recipes/google-voice/package.json create mode 100644 recipes/google-voice/webview.js (limited to 'recipes') diff --git a/recipes/ex-google-voice/icon.png b/recipes/ex-google-voice/icon.png deleted file mode 100644 index 1148ac5..0000000 Binary files a/recipes/ex-google-voice/icon.png and /dev/null differ diff --git a/recipes/ex-google-voice/icon.svg b/recipes/ex-google-voice/icon.svg deleted file mode 100644 index faeb8dc..0000000 --- a/recipes/ex-google-voice/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/ex-google-voice/index.js b/recipes/ex-google-voice/index.js deleted file mode 100644 index e8243fb..0000000 --- a/recipes/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/recipes/ex-google-voice/package.json b/recipes/ex-google-voice/package.json deleted file mode 100644 index 8b98c80..0000000 --- a/recipes/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/recipes/ex-google-voice/webview.js b/recipes/ex-google-voice/webview.js deleted file mode 100644 index 1a91455..0000000 --- a/recipes/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 diff --git a/recipes/glowing-bear/LICENSE b/recipes/glowing-bear/LICENSE new file mode 100644 index 0000000..25b2950 --- /dev/null +++ b/recipes/glowing-bear/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Jonathan Juursema + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/glowing-bear/icon.png b/recipes/glowing-bear/icon.png new file mode 100644 index 0000000..3a1fd78 Binary files /dev/null and b/recipes/glowing-bear/icon.png differ diff --git a/recipes/glowing-bear/icon.svg b/recipes/glowing-bear/icon.svg new file mode 100644 index 0000000..dad16a3 --- /dev/null +++ b/recipes/glowing-bear/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/glowing-bear/index.js b/recipes/glowing-bear/index.js new file mode 100644 index 0000000..2af527c --- /dev/null +++ b/recipes/glowing-bear/index.js @@ -0,0 +1,4 @@ +"use strict"; + +module.exports = Franz => Franz; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdsb3dpbmdiZWFyL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZ2xvd2luZ2JlYXIvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56OyJdfQ== \ No newline at end of file diff --git a/recipes/glowing-bear/package.json b/recipes/glowing-bear/package.json new file mode 100644 index 0000000..54c3acf --- /dev/null +++ b/recipes/glowing-bear/package.json @@ -0,0 +1,14 @@ +{ + "id": "glowing-bear", + "name": "glowing-bear", + "version": "1.0.0", + "description": "Glowing Bear - WeeChat web frontend", + "main": "index.js", + "author": "Jonathan Juursema ", + "license": "MIT", + "config": { + "serviceURL": "https://www.glowing-bear.org", + "hasNotificationSound": true, + "hasIndirectMessages": true + } +} diff --git a/recipes/glowing-bear/webview.js b/recipes/glowing-bear/webview.js new file mode 100644 index 0000000..1876a72 --- /dev/null +++ b/recipes/glowing-bear/webview.js @@ -0,0 +1,15 @@ +'use strict'; + +module.exports = Franz => { + const getMessages = function getMessages() { + let indirectElements = document.querySelectorAll('.badge:not(.danger)'); + let direct = document.querySelectorAll('.badge.danger').length - 1; + let indirect = -1; + for (let i = 0; i < indirectElements.length; i += 1) { + if (indirectElements[i].innerHTML.length > 0) indirect++; + } + Fran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FTQVAsT0FBTWEsSUFBTixDQUFXWixXQUFYO0FBQ0EsQ0FYRCIsImZpbGUiOiJnbG93aW5nYmVhci93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiB7XG5cdGNvbnN0IGdldE1lc3NhZ2VzID0gZnVuY3Rpb24gZ2V0TWVzc2FnZXMoKSB7XG5cdFx0bGV0IGluZGlyZWN0RWxlbWVudHMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuYmFkZ2U6bm90KC5kYW5nZXIpJyk7XG5cdFx0bGV0IGRpcmVjdCA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoJy5iYWRnZS5kYW5nZXInKS5sZW5ndGggLSAxO1xuXHRcdGxldCBpbmRpcmVjdCA9IC0xO1xuXHRcdGZvciAobGV0IGkgPSAwOyBpIDwgaW5kaXJlY3RFbGVtZW50cy5sZW5ndGg7IGkgKz0gMSkge1xuXHRcdFx0aWYgKGluZGlyZWN0RWxlbWVudHNbaV0uaW5uZXJIVE1MLmxlbmd0aCA+IDApIGluZGlyZWN0Kys7XG5cdFx0fVxuXHRcdEZyYW56LnNldEJhZGdlKE1hdGgubWF4KGRpcmVjdCwgMCksIE1hdGgubWF4KGluZGlyZWN0LCAwKSk7XG5cdH07XG5cdEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== \ No newline at end of file diff --git a/recipes/glowingbear/LICENSE b/recipes/glowingbear/LICENSE deleted file mode 100644 index 25b2950..0000000 --- a/recipes/glowingbear/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Jonathan Juursema - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/recipes/glowingbear/icon.png b/recipes/glowingbear/icon.png deleted file mode 100644 index 3a1fd78..0000000 Binary files a/recipes/glowingbear/icon.png and /dev/null differ diff --git a/recipes/glowingbear/icon.svg b/recipes/glowingbear/icon.svg deleted file mode 100644 index dad16a3..0000000 --- a/recipes/glowingbear/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/glowingbear/index.js b/recipes/glowingbear/index.js deleted file mode 100644 index 2af527c..0000000 --- a/recipes/glowingbear/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; - -module.exports = Franz => Franz; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdsb3dpbmdiZWFyL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZ2xvd2luZ2JlYXIvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56OyJdfQ== \ No newline at end of file diff --git a/recipes/glowingbear/package.json b/recipes/glowingbear/package.json deleted file mode 100644 index 04cca9c..0000000 --- a/recipes/glowingbear/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "glowingbear", - "name": "Glowing Bear", - "version": "1.0.0", - "description": "Glowing Bear - WeeChat web frontend", - "main": "index.js", - "author": "Jonathan Juursema ", - "license": "MIT", - "config": { - "serviceURL": "https://www.glowing-bear.org", - "hasNotificationSound": true, - "hasIndirectMessages": true - } -} diff --git a/recipes/glowingbear/webview.js b/recipes/glowingbear/webview.js deleted file mode 100644 index 1876a72..0000000 --- a/recipes/glowingbear/webview.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = Franz => { - const getMessages = function getMessages() { - let indirectElements = document.querySelectorAll('.badge:not(.danger)'); - let direct = document.querySelectorAll('.badge.danger').length - 1; - let indirect = -1; - for (let i = 0; i < indirectElements.length; i += 1) { - if (indirectElements[i].innerHTML.length > 0) indirect++; - } - Franz.setBadge(Math.max(direct, 0), Math.max(indirect, 0)); - }; - Franz.loop(getMessages); -}; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdsb3dpbmdiZWFyL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJpbmRpcmVjdEVsZW1lbnRzIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwiZGlyZWN0IiwibGVuZ3RoIiwiaW5kaXJlY3QiLCJpIiwiaW5uZXJIVE1MIiwic2V0QmFkZ2UiLCJNYXRoIiwibWF4IiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBUztBQUN6QixPQUFNQyxjQUFjLFNBQVNBLFdBQVQsR0FBdUI7QUFDMUMsTUFBSUMsbUJBQW1CQyxTQUFTQyxnQkFBVCxDQUEwQixxQkFBMUIsQ0FBdkI7QUFDQSxNQ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0uaW5uZXJIVE1MLmxlbmd0aCA+IDApIGluZGlyZWN0Kys7XG5cdFx0fVxuXHRcdEZyYW56LnNldEJhZGdlKE1hdGgubWF4KGRpcmVjdCwgMCksIE1hdGgubWF4KGluZGlyZWN0LCAwKSk7XG5cdH07XG5cdEZyYW56Lmxvb3AoZ2V0TWVzc2FnZXMpO1xufTtcbiJdfQ== \ No newline at end of file diff --git a/recipes/google-voice/icon.png b/recipes/google-voice/icon.png new file mode 100644 index 0000000..1148ac5 Binary files /dev/null and b/recipes/google-voice/icon.png differ diff --git a/recipes/google-voice/icon.svg b/recipes/google-voice/icon.svg new file mode 100644 index 0000000..faeb8dc --- /dev/null +++ b/recipes/google-voice/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/google-voice/index.js b/recipes/google-voice/index.js new file mode 100644 index 0000000..e8243fb --- /dev/null +++ b/recipes/google-voice/index.js @@ -0,0 +1,3 @@ +"use strict"; + +module.exports = Franz => Franz; \ No newline at end of file diff --git a/recipes/google-voice/package.json b/recipes/google-voice/package.json new file mode 100644 index 0000000..5bbf5c9 --- /dev/null +++ b/recipes/google-voice/package.json @@ -0,0 +1,15 @@ +{ + "id": "google-voice", + "name": "google-voice", + "version": "0.3.3", + "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/recipes/google-voice/webview.js b/recipes/google-voice/webview.js new file mode 100644 index 0000000..1a91455 --- /dev/null +++ b/recipes/google-voice/webview.js @@ -0,0 +1,26 @@ +"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-54-g00ecf