aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/glowing-bear
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-06-20 09:41:19 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-06-20 04:13:34 +0000
commit65b68b9b5976a07669aec1fdb69bd17b0ae95e72 (patch)
tree7d3bd222210eb8e16f696a2ca559029eaad64bb3 /recipes/glowing-bear
parentAdded new service: keybase.io (fixes #427) (diff)
downloadferdium-recipes-65b68b9b5976a07669aec1fdb69bd17b0ae95e72.tar.gz
ferdium-recipes-65b68b9b5976a07669aec1fdb69bd17b0ae95e72.tar.zst
ferdium-recipes-65b68b9b5976a07669aec1fdb69bd17b0ae95e72.zip
Renamed 'glowingbear' --> 'glowing-bear' and 'ex-google-voice' --> 'google-voide'.
Diffstat (limited to 'recipes/glowing-bear')
-rw-r--r--recipes/glowing-bear/LICENSE21
-rw-r--r--recipes/glowing-bear/icon.pngbin0 -> 16953 bytes
-rw-r--r--recipes/glowing-bear/icon.svg1
-rw-r--r--recipes/glowing-bear/index.js4
-rw-r--r--recipes/glowing-bear/package.json14
-rw-r--r--recipes/glowing-bear/webview.js15
6 files changed, 55 insertions, 0 deletions
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 @@
1MIT License
2
3Copyright (c) 2017 Jonathan Juursema
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
diff --git a/recipes/glowing-bear/icon.png b/recipes/glowing-bear/icon.png
new file mode 100644
index 0000000..3a1fd78
--- /dev/null
+++ b/recipes/glowing-bear/icon.png
Binary files 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 @@
<svg height="457" viewBox="0 0 457 437" width="457" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><filter id="a" height="200%" width="200%" x="-50%" y="-50%"><feOffset dx="0" dy="27" in="SourceAlpha" result="shadowOffsetInner1"/><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1" stdDeviation="6.5"/><feComposite in="shadowBlurInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" result="shadowMatrixInner1" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0"/><feMerge><feMergeNode in="SourceGraphic"/><feMergeNode in="shadowMatrixInner1"/></feMerge></filter><path id="b" d="m412.43975 168.568132c16.489655-17.902906 26.56025-41.809462 26.56025-68.068132 0-55.5046201-44.99538-100.5-100.5-100.5-26.25867 0-50.165226 10.0705946-68.068132 26.5602497-16.258708-4.2804471-33.329049-6.5602497-50.931868-6.5602497s-34.67316 2.2798026-50.931868 6.5602497c-17.902906-16.4896551-41.809462-26.5602497-68.068132-26.5602497-55.5046201 0-100.5 44.9953799-100.5 100.5 0 26.25867 10.0705946 50.165226 26.5602497 68.068132-4.2804471 16.258708-6.5602497 33.329049-6.5602497 50.931868 0 110.180813 89.319187 199.5 199.5 199.5s199.5-89.319187 199.5-199.5c0-17.602819-2.279803-34.67316-6.56025-50.931868zm-7.620223-23.0824c8.9418-12.914655 14.180473-28.588414 14.180473-45.485732 0-44.1827822-35.817218-80-80-80-16.897318 0-32.571077 5.2386726-45.485732 14.1804726 50.649199 20.2467769 91.058482 60.6560601 111.305256 111.3052654zm-259.632309-111.1856505c-12.660745-8.4042938-27.852245-13.3000815-44.187218-13.3000815-44.1827822 0-80 35.8172178-80 80 0 16.334973 4.8957877 31.526473 13.3000815 44.187218 20.246097-50.4099802 60.4771563-90.6410395 110.8871435-110.8871317z"/><filter id="c" height="200%" width="200%" x="-50%" y="-50%"><feOffset dx="0" dy="12" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="0"/><feColorMatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0"/><feOffset dx="0" dy="-21" in="SourceAlpha" result="shadowOffsetInner1"/><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1" stdDeviation="0"/><feComposite in="shadowBlurInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" result="shadowMatrixInner1" type="matrix" values="0 0 0 0 0.799641927 0 0 0 0 0.744202558 0 0 0 0 0.670283399 0 0 0 0.7 0"/><feMerge><feMergeNode in="shadowMatrixOuter1"/><feMergeNode in="SourceGraphic"/><feMergeNode in="shadowMatrixInner1"/></feMerge></filter><filter id="d" height="200%" width="200%" x="-50%" y="-50%"><feGaussianBlur in="SourceGraphic" result="blur" stdDeviation="11.676"/></filter><filter id="e" height="200%" width="200%" x="-50%" y="-50%"><feGaussianBlur in="SourceGraphic" result="blur" stdDeviation="24.993"/></filter><filter id="f" height="200%" width="200%" x="-50%" y="-50%"><feOffset dx="0" dy="-10" in="SourceAlpha" result="shadowOffsetInner1"/><feGaussianBlur in="shadowOffsetInner1" result="shadowBlurInner1" stdDeviation="0"/><feComposite in="shadowBlurInner1" in2="SourceAlpha" k2="-1" k3="1" operator="arithmetic" result="shadowInnerInner1"/><feColorMatrix in="shadowInnerInner1" result="shadowMatrixInner1" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0"/><feMerge><feMergeNode in="SourceGraphic"/><feMergeNode in="shadowMatrixInner1"/></feMerge></filter><mask id="g" fill="#fff"><use fill="#fff" fill-rule="evenodd" xlink:href="#b"/></mask></defs><g fill="none" fill-rule="evenodd" transform="translate(9 9)"><path d="m99 194c52.467054 0 95-42.532946 95-95 0-52.4670538-42.532946-95-95-95-52.4670538 0-95 42.5329462-95 95 0 52.467054 42.5329462 95 95 95zm240 0c52.467054 0 95-42.532946 95-95 0-52.4670538-42.532946-95-95-95s-95 42.5329462-95 95c0 52.467054 42.532946 95 95 95z" fill="#907b62" filter="url(#a)"/><use fill="#907b62" stroke="#000" stroke-width="9" xlink:href="#b"/><path d="m416.042773 172.705747c.633139 5.524517.957227 11.126903.957227 16.794253 0 93.61227-88.423757 169.5-197.5 169.5s-197.5-75.88773-197.5-169.5c0-7.069896.5043471-14.038696 1.4838477-20.881345-42.5776981-32.763918-68.4838477-76.0989854-68.4838477-123.618655 0-102.1726838 119.7638221-185 267.5-185 147.736178 0 267.5 82.8273162 267.5 185 0 49.523079-28.136581 94.501275-73.957227 127.705747z" fill="#beaa90" mask="url(#g)"/><path d="m408.22706 154.661565c11.756704-14.897946 18.77294-33.71039 18.77294-54.161565 0-48.324918-39.175082-87.5-87.5-87.5-20.188266 0-38.779664 6.8370019-53.58507 18.3218822 57.278473 20.2156742 102.562971 65.8426913 122.312128 123.3396848zm-254.454432-123.5809286c-14.754134-11.3393137-33.22612-18.0806364-53.272628-18.0806364-48.324918 0-87.5 39.175082-87.5 87.5 0 20.046508 6.7413227 38.518494 18.0806364 53.272628 19.989038-57.3075386 65.384453-102.7029536 122.6919946-122.6919894z" fill="#907b62" mask="url(#g)"/><path d="m219 390c44.182782 0 80-35.817218 80-80s-35.817218-80-80-80-80 35.817218-80 80 35.817218 80 80 80z" fill="#d9cdbd" filter="url(#c)"/><path d="m121.353143 210.466662c34.141832 9.148277 67.033728-2.896267 73.46611-26.902243s-16.030564-50.882805-50.172396-60.031081c-34.141832-9.148277-67.033728 2.896267-73.4661099 26.902243-6.4323818 24.005976 16.0305636 50.882805 50.1723959 60.031081zm196.293714 0c34.141832-9.148276 56.604778-36.025105 50.172396-60.031081s-39.324278-36.05052-73.46611-26.902243c-34.141832 9.148276-56.604778 36.025105-50.172396 60.031081s39.324278 36.05052 73.46611 26.902243z" fill="#f6a623" filter="url(#d)"/><path d="m121.353143 210.466662c34.141832 9.148277 67.033728-2.896267 73.46611-26.902243s-16.030564-50.882805-50.172396-60.031081c-34.141832-9.148277-67.033728 2.896267-73.4661099 26.902243-6.4323818 24.005976 16.0305636 50.882805 50.1723959 60.031081zm196.293714 0c34.141832-9.148276 56.604778-36.025105 50.172396-60.031081s-39.324278-36.05052-73.46611-26.902243c-34.141832 9.148276-56.604778 36.025105-50.172396 60.031081s39.324278 36.05052 73.46611 26.902243z" fill="#fff" filter="url(#e)"/><path d="m121.353143 210.466662c34.141832 9.148277 67.033728-2.896267 73.46611-26.902243s-16.030564-50.882805-50.172396-60.031081c-34.141832-9.148277-67.033728 2.896267-73.4661099 26.902243-6.4323818 24.005976 16.0305636 50.882805 50.1723959 60.031081zm196.293714 0c34.141832-9.148276 56.604778-36.025105 50.172396-60.031081s-39.324278-36.05052-73.46611-26.902243c-34.141832 9.148276-56.604778 36.025105-50.172396 60.031081s39.324278 36.05052 73.46611 26.902243z" fill="#fff"/><path d="m220.000002 328.000001c-20 0-60.000002-40.000001-40.000002-60.000001s59.999999-19.999997 80 0c20 20-19.999998 60.000001-39.999998 60.000001z" fill="#4a4a4a" filter="url(#f)" stroke="#979797"/></g></svg> \ 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 @@
1"use strict";
2
3module.exports = Franz => Franz;
4//# 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 @@
1{
2 "id": "glowing-bear",
3 "name": "glowing-bear",
4 "version": "1.0.0",
5 "description": "Glowing Bear - WeeChat web frontend",
6 "main": "index.js",
7 "author": "Jonathan Juursema <dev@jonathanj.nl>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://www.glowing-bear.org",
11 "hasNotificationSound": true,
12 "hasIndirectMessages": true
13 }
14}
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 @@
1'use strict';
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 let indirectElements = document.querySelectorAll('.badge:not(.danger)');
6 let direct = document.querySelectorAll('.badge.danger').length - 1;
7 let indirect = -1;
8 for (let i = 0; i < indirectElements.length; i += 1) {
9 if (indirectElements[i].innerHTML.length > 0) indirect++;
10 }
11 Franz.setBadge(Math.max(direct, 0), Math.max(indirect, 0));
12 };
13 Franz.loop(getMessages);
14};
15//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdsb3dpbmdiZWFyL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJpbmRpcmVjdEVsZW1lbnRzIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yQWxsIiwiZGlyZWN0IiwibGVuZ3RoIiwiaW5kaXJlY3QiLCJpIiwiaW5uZXJIVE1MIiwic2V0QmFkZ2UiLCJNYXRoIiwibWF4IiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBUztBQUN6QixPQUFNQyxjQUFjLFNBQVNBLFdBQVQsR0FBdUI7QUFDMUMsTUFBSUMsbUJBQW1CQyxTQUFTQyxnQkFBVCxDQUEwQixxQkFBMUIsQ0FBdkI7QUFDQSxNQUFJQyxTQUFTRixTQUFTQyxnQkFBVCxDQUEwQixlQUExQixFQUEyQ0UsTUFBM0MsR0FBb0QsQ0FBakU7QUFDQSxNQUFJQyxXQUFXLENBQUMsQ0FBaEI7QUFDQSxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSU4saUJBQWlCSSxNQUFyQyxFQUE2Q0UsS0FBSyxDQUFsRCxFQUFxRDtBQUNwRCxPQUFJTixpQkFBaUJNLENBQWpCLEVBQW9CQyxTQUFwQixDQUE4QkgsTUFBOUIsR0FBdUMsQ0FBM0MsRUFBOENDO0FBQzlDO0FBQ0RQLFFBQU1VLFFBQU4sQ0FBZUMsS0FBS0MsR0FBTCxDQUFTUCxNQUFULEVBQWlCLEN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