aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/redditchat
diff options
context:
space:
mode:
Diffstat (limited to 'uncompressed/redditchat')
-rw-r--r--uncompressed/redditchat/README.md5
-rw-r--r--uncompressed/redditchat/icon.pngbin14976 -> 0 bytes
-rw-r--r--uncompressed/redditchat/icon.svg94
-rw-r--r--uncompressed/redditchat/index.js2
-rw-r--r--uncompressed/redditchat/package.json13
-rw-r--r--uncompressed/redditchat/webview.js23
6 files changed, 0 insertions, 137 deletions
diff --git a/uncompressed/redditchat/README.md b/uncompressed/redditchat/README.md
deleted file mode 100644
index 4a55681..0000000
--- a/uncompressed/redditchat/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
1# Reddit Chat for Franz
2This is the unofficial Franz recipe for Reddit Chat. Still In Development
3
4### How to create your own Franz recipes:
5* [Read the documentation](https://github.com/meetfranz/plugins)
diff --git a/uncompressed/redditchat/icon.png b/uncompressed/redditchat/icon.png
deleted file mode 100644
index 123268c..0000000
--- a/uncompressed/redditchat/icon.png
+++ /dev/null
Binary files differ
diff --git a/uncompressed/redditchat/icon.svg b/uncompressed/redditchat/icon.svg
deleted file mode 100644
index f8b7eda..0000000
--- a/uncompressed/redditchat/icon.svg
+++ /dev/null
@@ -1,94 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
4<svg
5 xmlns:dc="http://purl.org/dc/elements/1.1/"
6 xmlns:cc="http://creativecommons.org/ns#"
7 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8 xmlns:svg="http://www.w3.org/2000/svg"
9 xmlns="http://www.w3.org/2000/svg"
10 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12 width="49.350773mm"
13 height="49.423195mm"
14 viewBox="0 0 174.86494 175.12155"
15 id="svg2"
16 version="1.1"
17 inkscape:version="0.91 r13725"
18 sodipodi:docname="Reddit.svg">
19 <defs
20 id="defs4" />
21 <sodipodi:namedview
22 id="base"
23 pagecolor="#ffffff"
24 bordercolor="#666666"
25 borderopacity="1.0"
26 inkscape:pageopacity="0.0"
27 inkscape:pageshadow="2"
28 inkscape:zoom="1.4"
29 inkscape:cx="154.12861"
30 inkscape:cy="34.39108"
31 inkscape:document-units="px"
32 inkscape:current-layer="layer3"
33 showgrid="false"
34 inkscape:snap-object-midpoints="false"
35 inkscape:snap-others="true"
36 inkscape:snap-to-guides="true"
37 showguides="true"
38 inkscape:snap-page="false"
39 inkscape:snap-bbox="true"
40 inkscape:bbox-paths="false"
41 inkscape:bbox-nodes="false"
42 inkscape:window-width="1366"
43 inkscape:window-height="705"
44 inkscape:window-x="-8"
45 inkscape:window-y="-8"
46 inkscape:window-maximized="1"
47 fit-margin-top="0"
48 fit-margin-left="0"
49 fit-margin-right="0"
50 fit-margin-bottom="0">
51 <inkscape:grid
52 type="xygrid"
53 id="grid4193"
54 originx="-283.46284"
55 originy="-538.11441" />
56 </sodipodi:namedview>
57 <metadata
58 id="metadata7">
59 <rdf:RDF>
60 <cc:Work
61 rdf:about="">
62 <dc:format>image/svg+xml</dc:format>
63 <dc:type
64 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
65 <dc:title />
66 </cc:Work>
67 </rdf:RDF>
68 </metadata>
69 <g
70 inkscape:groupmode="layer"
71 id="layer2"
72 inkscape:label="Background"
73 transform="translate(-0.4684983,0.16081395)"
74 style="display:inline">
75 <path
76 style="fill:#ff4500;fill-opacity:1"
77 d="M 83.489491,174.87114 C 64.14825,173.21022 49.790043,168.07947 35.920475,157.87287 13.419472,141.3144 0.4684983,115.55599 0.4684983,87.361833 c 0,-43.416648 30.6211187,-79.355011 73.6601427,-86.4509601 17.56841,-2.8965454 37.024309,0.1437878 53.298659,8.3288681 39.56691,19.899925 57.65093,65.790406 42.67483,108.292719 -10.28193,29.18023 -37.27453,51.4209 -68.17131,56.17006 -6.078379,0.93431 -14.761949,1.48458 -18.441329,1.16862 z"
78 id="path4245"
79 inkscape:connector-curvature="0"
80 sodipodi:nodetypes="ssssssss" />
81 </g>
82 <g
83 inkscape:groupmode="layer"
84 id="layer3"
85 inkscape:label="Reddit icon"
86 style="display:inline">
87 <path
88 style="display:inline;fill:#fdfdfd;fill-opacity:1"
89 d="m 83.018087,175.06362 c -55.345391,0.0386 -27.672696,0.0193 0,0 z m 19.625563,-37.60573 c 6.01991,-1.41193 10.37862,-2.92559 14.65911,-5.09069 13.32229,-6.73853 21.66282,-17.92521 21.66282,-29.05511 0,-3.364699 0.0723,-3.521405 2.87667,-6.236025 2.22582,-2.154585 3.09678,-3.546755 3.84952,-6.153175 0.8966,-3.10459 0.89949,-3.62085 0.0369,-6.58806 -2.41969,-8.323441 -11.07464,-12.073287 -18.82055,-8.154211 l -2.99379,1.514718 -3.08522,-1.898347 c -5.93327,-3.650787 -16.48607,-7.226352 -23.290343,-7.891395 -1.86438,-0.182219 -4.21478,-0.455254 -5.22315,-0.606746 l -1.83337,-0.275437 0.78731,-3.941105 c 0.43302,-2.167604 1.33532,-6.445554 2.00512,-9.506554 0.66979,-3.061001 1.50903,-7.213124 1.86497,-9.22694 0.51446,-2.910754 0.86543,-3.661485 1.71175,-3.661485 0.58553,0 4.773803,0.790881 9.307273,1.757513 4.53348,0.966632 8.33595,1.757512 8.44993,1.757512 0.11399,0 0.36968,0.865871 0.56822,1.924158 0.5023,2.677478 1.80666,4.340073 4.4715,5.699573 6.39553,3.262753 13.59408,-1.084509 13.59408,-8.209568 0,-8.827602 -10.88457,-12.682874 -16.41616,-5.814538 -1.06906,1.327401 -1.60541,1.570702 -2.63627,1.195863 -0.71179,-0.25882 -5.60196,-1.352202 -10.86707,-2.42974 -6.973153,-1.427103 -9.833503,-1.794777 -10.532493,-1.353862 -1.06721,0.673178 -0.92941,0.175791 -3.86965,13.967733 -3.49721,16.404632 -3.70847,17.333718 -4.0099,17.635143 -0.15933,0.159336 -2.68831,0.537863 -5.61995,0.841163 -8.894154,0.920181 -18.668424,4.060551 -25.257927,8.115114 l -3.046869,1.874756 -2.992296,-1.49112 c -7.810944,-3.892363 -16.480416,-0.140935 -18.898738,8.177802 -0.86259,2.96721 -0.859697,3.48347 0.03691,6.58806 0.752734,2.60642 1.6237,3.99859 3.849514,6.153175 2.804387,2.71462 2.876673,2.871326 2.876673,6.236025 0,15.37461 15.8014,30.0469 36.907763,34.27049 6.9923,1.39923 7.46674,1.43492 16.40345,1.23412 5.8405,-0.13122 10.050515,-0.55579 13.474263,-1.35881 z M 78.004797,126.29256 c -4.84733,-1.09132 -10.329493,-3.52615 -11.93583,-5.30113 -1.280881,-1.41536 -0.73324,-3.55941 0.909149,-3.55941 0.639805,0 2.137891,0.66529 3.329086,1.47841 8.043475,5.49058 26.194355,5.47068 34.264628,-0.0375 2.59945,-1.77422 4.72669,-1.72524 4.98891,0.11485 0.12339,0.86594 -0.42913,1.72735 -1.75816,2.74105 -6.45291,4.92187 -19.399793,6.9048 -29.797783,4.5638 z m -14.78361,-21.76867 c -3.018029,-1.63752 -4.510444,-4.24976 -4.513163,-7.899545 -0.0029,-4.183455 1.940224,-6.890585 5.887667,-8.201715 2.809383,-0.93313 3.144852,-0.9331 5.589581,5.5e-4 6.579045,2.51256 7.925385,10.720415 2.477965,15.10663 -2.839275,2.28616 -6.374669,2.65838 -9.44205,0.99408 z m 40.887053,0.2701 c -2.79684,-1.45461 -4.360318,-3.22302 -5.021978,-5.680245 -1.224055,-4.545765 1.080328,-8.982725 5.552208,-10.690565 2.44473,-0.93365 2.7802,-0.93368 5.58959,-5.5e-4 3.94744,1.31113 5.89078,4.01826 5.88767,8.201715 -0.003,3.716205 -1.5249,6.307345 -4.63819,7.895625 -2.8004,1.42866 -4.99251,1.51017 -7.3693,0.27402 z"
90 id="path4245-1"
91 inkscape:connector-curvature="0"
92 sodipodi:nodetypes="ccssssssscssscsssssssssssssscsscsssssssscsssscsccscsssssssscss" />
93 </g>
94</svg>
diff --git a/uncompressed/redditchat/index.js b/uncompressed/redditchat/index.js
deleted file mode 100644
index bff9333..0000000
--- a/uncompressed/redditchat/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
1// just pass through Franz
2module.exports = Franz => Franz; \ No newline at end of file
diff --git a/uncompressed/redditchat/package.json b/uncompressed/redditchat/package.json
deleted file mode 100644
index f691800..0000000
--- a/uncompressed/redditchat/package.json
+++ /dev/null
@@ -1,13 +0,0 @@
1{
2 "id": "redditchat",
3 "name": "Reddit Chat",
4 "version": "1.0.0",
5 "description": "Reddit Chat",
6 "main": "index.js",
7 "author": "Alex Bloom <administrator@shadowserversystems.com",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://www.reddit.com/chat/",
11 "hasNotificationSound": false
12 }
13}
diff --git a/uncompressed/redditchat/webview.js b/uncompressed/redditchat/webview.js
deleted file mode 100644
index c27a76f..0000000
--- a/uncompressed/redditchat/webview.js
+++ /dev/null
@@ -1,23 +0,0 @@
1'use strict';
2
3module.exports = Franz => {
4 // Regular expression for (*) or (1), will extract the asterisk or the number
5 const titleRegEx = /^\(([\*\d])\)/;
6 const getMessages = function unreadCount() {
7 var directCount = 0;
8 var indirectCount = 0;
9
10 var matchArr = document.title.match(titleRegEx);
11 if (matchArr) {
12 if (matchArr[1] === '*') {
13 indirectCount = 1;
14 } else {
15 directCount = Number(matchArr[1]);
16 }
17 }
18
19 Franz.setBadge(directCount, indirectCount);
20 }
21
22 Franz.loop(getMessages);
23};