diff options
Diffstat (limited to 'uncompressed/steamchat')
-rw-r--r-- | uncompressed/steamchat/README.md | 5 | ||||
-rw-r--r-- | uncompressed/steamchat/icon.png | bin | 78535 -> 0 bytes | |||
-rw-r--r-- | uncompressed/steamchat/icon.svg | 7 | ||||
-rw-r--r-- | uncompressed/steamchat/index.js | 12 | ||||
-rw-r--r-- | uncompressed/steamchat/package.json | 15 | ||||
-rw-r--r-- | uncompressed/steamchat/webview.js | 32 |
6 files changed, 0 insertions, 71 deletions
diff --git a/uncompressed/steamchat/README.md b/uncompressed/steamchat/README.md deleted file mode 100644 index 274fd30..0000000 --- a/uncompressed/steamchat/README.md +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | # Steam Chat for Franz | ||
2 | An unofficial Franz recipe for Steam Chat | ||
3 | |||
4 | ### How to create your own Franz recipes: | ||
5 | * [Read the documentation](https://github.com/meetfranz/plugins) | ||
diff --git a/uncompressed/steamchat/icon.png b/uncompressed/steamchat/icon.png deleted file mode 100644 index 0f83ad8..0000000 --- a/uncompressed/steamchat/icon.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/uncompressed/steamchat/icon.svg b/uncompressed/steamchat/icon.svg deleted file mode 100644 index 3c937fa..0000000 --- a/uncompressed/steamchat/icon.svg +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"> | ||
2 | <g fill="#303C42"> | ||
3 | <circle cx="50" cy="31" r="8"/> | ||
4 | <path d="M29.0701901,60.2547285 C27.2938309,61.1579829 25.1386107,60.8900943 23.643795,59.5802407 C22.9664461,59.0409684 21.9795895,59.1246189 21.405016,59.7700098 C20.8304425,60.4154007 20.8719729,61.3935898 21.4992317,61.9891259 C24.1047049,64.2633343 27.8853033,64.6469554 30.9038796,62.9434251 C33.9224559,61.2398947 35.510037,57.826747 34.8531594,54.4528508 C34.1962818,51.0789545 31.440522,48.4920282 27.9979084,48.0175916 C27.5699473,47.9538201 27.1341629,48.0650055 26.7908901,48.3255487 C26.4476172,48.586092 26.2264388,48.9735396 26.178279,49.3986858 C26.0630367,50.2763706 26.6879143,51.080775 27.5754945,51.1973201 C29.6994006,51.4767091 31.3896429,53.0943816 31.7406781,55.1836736 C32.0917133,57.2729655 31.0212083,59.3438465 29.1026835,60.286847 L29.0701901,60.2547285 Z"/> | ||
5 | <path d="M39.0066071,1.49949261e-05 C18.0838083,-0.0181511108 0.873422384,16.4718552 0.0016466605,37.3723347 C-0.0184514708,37.8186421 0.146134827,38.2535337 0.456704532,38.5747484 C0.690343093,38.7961422 0.984478607,38.9431807 1.30181201,38.9972181 C2.40695255,39.3546925 11.0530521,43.0919245 16.0911928,45.496752 C16.6533973,45.7387193 17.3032147,45.6512613 17.7814078,45.2692683 C20.3402696,43.040095 23.6967535,41.948868 27.07759,42.2469851 C27.6393742,42.3094837 28.1932874,42.0756558 28.540276,41.6295293 L35.3986482,32.6601726 C35.6460862,32.3353319 35.7621303,31.9292583 35.7236896,31.5227542 C35.7236896,31.2627728 35.7236896,31.0352892 35.7236896,30.8078055 C35.7778148,22.8753067 42.1475771,16.4323803 50.0804894,16.2861012 C58.0134016,16.1398222 64.6164546,22.3435361 64.9631029,30.2686448 C65.3097511,38.1937535 59.2735773,44.9500937 51.3581779,45.496752 C51.0252953,45.5196754 50.7075371,45.6444842 50.4480621,45.8542263 L39.5591774,54.7910854 C39.20884,55.0818923 38.9965923,55.5063032 38.974103,55.9610015 C38.5947257,62.8470206 32.9027798,68.2383179 26.0049536,68.2451205 C20.1581881,68.2920356 15.0220164,64.3738089 13.5233663,58.7233034 C13.4043834,58.271266 13.0964552,57.8923527 12.6782588,57.683378 L6.5024734,54.6610947 C5.87026413,54.3355705 5.09979654,54.4587884 4.60069468,54.9652388 C4.10159281,55.4716892 3.98977765,56.2437444 4.32469644,56.8709362 C13.1065139,73.8968703 32.9566266,82.0245118 51.1605893,76.047923 C69.364552,70.0713342 80.5311361,51.7605228 77.5078924,32.8439769 C74.4846486,13.9274311 58.1669314,0.00741572817 39.0066071,1.49949261e-05 Z"/> | ||
6 | </g> | ||
7 | </svg> | ||
diff --git a/uncompressed/steamchat/index.js b/uncompressed/steamchat/index.js deleted file mode 100644 index 08b28c6..0000000 --- a/uncompressed/steamchat/index.js +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = (Franz) => | ||
4 | class SteamChat extends Franz { | ||
5 | overrideUserAgent() { | ||
6 | return window.navigator.userAgent.replace( | ||
7 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, | ||
8 | "" | ||
9 | ); | ||
10 | } | ||
11 | }; | ||
12 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZWFtY2hhdC9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJTdGVhbUNoYXQiLCJvdmVycmlkZVVzZXJBZ2VudCIsIndpbmRvdyIsIm5hdmlnYXRvciIsInVzZXJBZ2VudCIsInJlcGxhY2UiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVMsTUFBTUMsU0FBTixTQUF3QkQsS0FBeEIsQ0FBOEI7QUFDdERFLHNCQUFvQjtBQUNsQixXQUFPQyxPQUFPQyxTQUFQLENBQWlCQyxTQUFqQixDQUEyQkMsT0FBM0IsQ0FBbUMsNkJBQW5DLEVBQWtFLEVBQWxFLENBQVA7QUFDRDtBQUhxRCxDQUF4RCIsImZpbGUiOiJzdGVhbWNoYXQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IGNsYXNzIFN0ZWFtQ2hhdCBleHRlbmRzIEZyYW56IHtcbiAgb3ZlcnJpZGVVc2VyQWdlbnQoKSB7XG4gICAgcmV0dXJuIHdpbmRvdy5uYXZpZ2F0b3IudXNlckFnZW50LnJlcGxhY2UoLyhGcmFuenxFbGVjdHJvbikoW15cXHNdK1xccykvZywgJycpO1xuICB9XG59O1xuIl19 | ||
diff --git a/uncompressed/steamchat/package.json b/uncompressed/steamchat/package.json deleted file mode 100644 index 3c77e27..0000000 --- a/uncompressed/steamchat/package.json +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | { | ||
2 | "id": "steamchat", | ||
3 | "name": "SteamChat", | ||
4 | "version": "1.1.2", | ||
5 | "description": "Steam Chat", | ||
6 | "main": "index.js", | ||
7 | "author": "Kevin Oestmark <yo@kevin.am>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://steamcommunity.com/chat", | ||
11 | "hasNotificationSound": true, | ||
12 | "hasDirectMessages": true, | ||
13 | "hasIndirectMessages": true | ||
14 | } | ||
15 | } | ||
diff --git a/uncompressed/steamchat/webview.js b/uncompressed/steamchat/webview.js deleted file mode 100644 index 87f1f7a..0000000 --- a/uncompressed/steamchat/webview.js +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | // get new msg count | ||
6 | let count = 0; | ||
7 | let counters = document.querySelectorAll("[class*=FriendMessageCount]"); | ||
8 | [].filter.call(counters, countValue => { | ||
9 | if (countValue) { | ||
10 | count += parseInt(countValue.innerHTML); | ||
11 | } | ||
12 | }); | ||
13 | |||
14 | const indirectMessages = document.querySelectorAll("[class*=ChatUnreadMessageIndicator]").length; | ||
15 | Franz.setBadge(count, indirectMessages); | ||
16 | |||
17 | // force scroll to bottom of chat window | ||
18 | const chatBoxes = document.querySelectorAll('.chat_dialog'); | ||
19 | if (chatBoxes) { | ||
20 | const chatBox = [].filter.call(chatBoxes, chat => { | ||
21 | return chat.style.display !== 'none'; | ||
22 | }); | ||
23 | if (chatBox[0]) { | ||
24 | const chatWindow = chatBox[0].querySelector('.chat_dialog_scroll'); | ||
25 | chatWindow.scrollTop = chatWindow.scrollHeight; | ||
26 | } | ||
27 | } | ||
28 | }; | ||
29 | |||
30 | Franz.loop(getMessages); | ||
31 | }; | ||
32 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZWFtY2hhdC93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiY291bnQiLCJjb3VudGVycyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsIkFycmF5IiwicHJvdG90eXBlIiwic2xpY2UiLCJjYWxsIiwiTWF0aCIsImZsb29yIiwibGVuZ3RoIiwiZmlsdGVyIiwiY291bnRWYWx1ZXMiLCJjb3VudFZhbHVlIiwicXVlcnlTZWxlY3RvciIsImlubmVySFRNTCIsInBhcnNlSW50Iiwic2V0QmFkZ2UiLCJjaGF0Qm94ZXMiLCJjaGF0Qm94IiwiY2hhdCIsInN0eWxlIiwiZGlzcGxheSIsImNoYXRXaW5kb3ciLCJzY3JvbGxUb3AiLCJzY3JvbGxIZWlnaHQiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUVBQSxPQUFPQyxPQUFQLEdBQWtCQyxLQUFELElBQVc7QUFDMUIsUUFBTUMsY0FBYyxTQUFTQSxXQUFULEdBQXVCO0FBQ3pDO0FBQ0EsUUFBSUMsUUFBUSxDQUFaO0FBQ0EsUUFBSUMsV0FBV0MsU0FBU0MsZ0JBQVQsQ0FBMEIscURBQTFCLENBQWY7QUFDQUYsZUFBV0csTUFBTUMsU0FBTixDQUFnQkMsS0FBaEIsQ0FBc0JDLElBQXRCLENBQTJCTixRQUEzQixFQUFxQ08sS0FBS0MsS0FBTCxDQUFXUixTQUFTUyxNQUFULEdBQWtCLENBQTdCLENBQXJDLENBQVg7QUFDQSxPQUFHQyxNQUFILENBQVVKLElBQVYsQ0FBZU4sUUFBZixFQU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