diff options
author | vantezzen <hello@vantezzen.io> | 2019-09-28 12:10:25 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-09-28 12:10:25 +0200 |
commit | 728d339739b63e9bb59e457e4a84fe9a65b93fc9 (patch) | |
tree | a0fc6180ea26fa9ef397458e8eb6491031d6437d /uncompressed/gadugadu | |
parent | Add list of recipes (diff) | |
download | ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.gz ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.tar.zst ferdium-recipes-728d339739b63e9bb59e457e4a84fe9a65b93fc9.zip |
Add uncompressed recipes
Diffstat (limited to 'uncompressed/gadugadu')
-rw-r--r-- | uncompressed/gadugadu/LICENSE | 21 | ||||
-rw-r--r-- | uncompressed/gadugadu/README.md | 23 | ||||
-rw-r--r-- | uncompressed/gadugadu/icon.svg | 19 | ||||
-rw-r--r-- | uncompressed/gadugadu/index.js | 4 | ||||
-rw-r--r-- | uncompressed/gadugadu/package.json | 13 | ||||
-rw-r--r-- | uncompressed/gadugadu/service.css | 3 | ||||
-rw-r--r-- | uncompressed/gadugadu/webview.js | 25 |
7 files changed, 108 insertions, 0 deletions
diff --git a/uncompressed/gadugadu/LICENSE b/uncompressed/gadugadu/LICENSE new file mode 100644 index 0000000..cb0e9b2 --- /dev/null +++ b/uncompressed/gadugadu/LICENSE | |||
@@ -0,0 +1,21 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2017 Wojciech Zięciak | ||
4 | |||
5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | of this software and associated documentation files (the "Software"), to deal | ||
7 | in the Software without restriction, including without limitation the rights | ||
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | copies of the Software, and to permit persons to whom the Software is | ||
10 | furnished to do so, subject to the following conditions: | ||
11 | |||
12 | The above copyright notice and this permission notice shall be included in all | ||
13 | copies or substantial portions of the Software. | ||
14 | |||
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | SOFTWARE. | ||
diff --git a/uncompressed/gadugadu/README.md b/uncompressed/gadugadu/README.md new file mode 100644 index 0000000..141ca41 --- /dev/null +++ b/uncompressed/gadugadu/README.md | |||
@@ -0,0 +1,23 @@ | |||
1 | # GaduGadu for Franz 5+ | ||
2 | |||
3 | ## Requirements | ||
4 | This recipe only works for Franz 5.X, get it now at http://meetfranz.com | ||
5 | |||
6 | ## Installation | ||
7 | |||
8 | 1. Clone/download the folder `recipe-franz-gadugadu`. | ||
9 | |||
10 | 2. Open the Franz Recipe folder on your machine: | ||
11 | * Mac: `~/Library/Application Support/Franz/recipes/` | ||
12 | * Windows: `%appdata%/Franz/recipes/` | ||
13 | * Linux: `~/.config/Franz/recipes/` | ||
14 | |||
15 | 3. Create a `dev` folder if you have not already done so | ||
16 | |||
17 | 3. Unzip and copy the `recipe-franz-gadugadu` folder into the recipes dev directory | ||
18 | |||
19 | 4. Restart Franz | ||
20 | |||
21 | 5. Add a service | ||
22 | |||
23 | 6. Done! | ||
diff --git a/uncompressed/gadugadu/icon.svg b/uncompressed/gadugadu/icon.svg new file mode 100644 index 0000000..7d7eb4b --- /dev/null +++ b/uncompressed/gadugadu/icon.svg | |||
@@ -0,0 +1,19 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <svg width="1024px" height="1024px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
3 | <!-- Generator: Sketch 40.2 (33826) - http://www.bohemiancoding.com/sketch --> | ||
4 | <title>Untitled</title> | ||
5 | <desc>Created with Sketch.</desc> | ||
6 | <defs></defs> | ||
7 | <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | ||
8 | <rect id="Rectangle" fill="#D4130B" x="452" y="2" width="119" height="1020" rx="44.7368421"></rect> | ||
9 | <rect id="Rectangle" fill="#D4130B" transform="translate(511.500000, 512.000000) rotate(135.000000) translate(-511.500000, -512.000000) " x="452" y="2" width="119" height="1020" rx="44.7368421"></rect> | ||
10 | <rect id="Rectangle" fill="#D4130B" transform="translate(511.500000, 512.000000) rotate(90.000000) translate(-511.500000, -512.000000) " x="452" y="2" width="119" height="1020" rx="44.7368421"></rect> | ||
11 | <rect id="Rectangle" fill="#D4130B" transform="translate(511.500000, 512.000000) scale(-1, -1) rotate(45.000000) translate(-511.500000, -512.000000) " x="452" y="2" width="119" height="1020" rx="44.7368421"></rect> | ||
12 | <ellipse id="Oval" stroke="#D7191A" stroke-width="77.5438596" fill="#FEDB00" cx="512" cy="512" rx="325" ry="325"></ellipse> | ||
13 | <path d="M387,596 C387,596 423.731352,662 511.437965,662 C599.144578,662 635,596.54182 635,596.54182" id="Path-2" stroke="#07090B" stroke-width="32.8070175"></path> | ||
14 | <ellipse id="Oval-2" fill="#090B0E" cx="386.5" cy="595" rx="16.5" ry="17"></ellipse> | ||
15 | <path d="M651,595.501419 C651,586.166597 643.612698,578.780884 634.5,579.004967 C625.387302,579.22905 618,586.613461 618,595.49851 C618,604.383558 625.387302,611.769272 634.5,611.994961 C643.612698,612.220651 651,604.836241 651,595.501419 Z" id="Oval-2" fill="#090B0E"></path> | ||
16 | <circle id="Oval-3" fill="#0B0E10" cx="394.5" cy="421.5" r="34.5"></circle> | ||
17 | <circle id="Oval-3" fill="#0B0E10" cx="630.5" cy="421.5" r="34.5"></circle> | ||
18 | </g> | ||
19 | </svg> \ No newline at end of file | ||
diff --git a/uncompressed/gadugadu/index.js b/uncompressed/gadugadu/index.js new file mode 100644 index 0000000..1ee848c --- /dev/null +++ b/uncompressed/gadugadu/index.js | |||
@@ -0,0 +1,4 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; | ||
4 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdhZHVnYWR1L2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZ2FkdWdhZHUvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56OyJdfQ== \ No newline at end of file | ||
diff --git a/uncompressed/gadugadu/package.json b/uncompressed/gadugadu/package.json new file mode 100644 index 0000000..a008ec9 --- /dev/null +++ b/uncompressed/gadugadu/package.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "id": "gadugadu", | ||
3 | "name": "Gadu-Gadu", | ||
4 | "version": "1.0.2", | ||
5 | "description": "Gadu-Gadu the most popular polish communicator of the 00's", | ||
6 | "main": "index.js", | ||
7 | "author": "Wojciech Zięciak <wojciech.zieciak@gmail.com>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://www.gg.pl", | ||
11 | "hasNotificationSound": true | ||
12 | } | ||
13 | } | ||
diff --git a/uncompressed/gadugadu/service.css b/uncompressed/gadugadu/service.css new file mode 100644 index 0000000..998e3be --- /dev/null +++ b/uncompressed/gadugadu/service.css | |||
@@ -0,0 +1,3 @@ | |||
1 | #sr-advert-container, #sr-footer { | ||
2 | display: none !important; | ||
3 | } | ||
diff --git a/uncompressed/gadugadu/webview.js b/uncompressed/gadugadu/webview.js new file mode 100644 index 0000000..320b6ee --- /dev/null +++ b/uncompressed/gadugadu/webview.js | |||
@@ -0,0 +1,25 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | const path = require('path'); | ||
4 | |||
5 | module.exports = Franz => { | ||
6 | const getMessages = () => { | ||
7 | const updates = parseInt(document.querySelector('i#sr-last-counter').textContent, 10); | ||
8 | let messages = 0; | ||
9 | |||
10 | const conversations = document.querySelectorAll('.chat-counter:not(.d-none)').length; | ||
11 | if (conversations === 0) { | ||
12 | messages = 0; | ||
13 | } else { | ||
14 | for (let i = 0; i < conversations; i + 1) { | ||
15 | messages += parseInt(document.querySelectorAll('.chat-counter:not(.d-none)')[i].textContent, 10); | ||
16 | } | ||
17 | } | ||
18 | |||
19 | Franz.setBadge(messages, updates); | ||
20 | }; | ||
21 | |||
22 | Franz.injectCSS(path.join(__dirname, 'service.css')); | ||
23 | Franz.loop(getMessages); | ||
24 | }; | ||
25 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdhZHVnYWR1L3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsInVwZGF0ZXMiLCJwYXJzZUludCIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvciIsInRleHRDb250ZW50IiwibWVzc2FnZXMiLCJjb252ZXJzYXRpb25zIiwicXVlcnlTZWxlY3RvckFsbCIsImxlbmd0aCIsImkiLCJzZXRCYWRnZSIsImluamVjdENTUyIsImpvaW4iLCJfX2Rpcm5hbWUiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBLE1BQU1BLE9BQU9DLFFBQVEsTUFBUixDQUFiOztBQUVBQyxPQUFPQyxPQUFQLEdBQWtCQyxLQUFELElBQVc7QUFDMUIsUUFBTUMsY0FBYy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