diff options
Diffstat (limited to 'uncompressed')
-rwxr-xr-x | uncompressed/twitter/icon.png | bin | 4298 -> 23015 bytes | |||
-rw-r--r--[-rwxr-xr-x] | uncompressed/twitter/icon.svg | 36 | ||||
-rw-r--r-- | uncompressed/twitter/package.json | 2 | ||||
-rw-r--r-- | uncompressed/twitter/webview.js | 12 |
4 files changed, 45 insertions, 5 deletions
diff --git a/uncompressed/twitter/icon.png b/uncompressed/twitter/icon.png index b5eebc8..96403ef 100755 --- a/uncompressed/twitter/icon.png +++ b/uncompressed/twitter/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/twitter/icon.svg b/uncompressed/twitter/icon.svg index 2832e7b..b605528 100755..100644 --- a/uncompressed/twitter/icon.svg +++ b/uncompressed/twitter/icon.svg | |||
@@ -1 +1,35 @@ | |||
1 | <svg id="Logo_FIXED" data-name="Logo — FIXED" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><style>.cls-1{fill:none;}.cls-2{fill:#1da1f2;}</style></defs><title>Twitter_Logo_Blue</title><rect class="cls-1" width="400" height="400"/><path class="cls-2" d="M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23"/></svg> \ No newline at end of file | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
2 | <svg | ||
3 | xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
4 | xmlns:cc="http://creativecommons.org/ns#" | ||
5 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
6 | xmlns:svg="http://www.w3.org/2000/svg" | ||
7 | xmlns="http://www.w3.org/2000/svg" | ||
8 | version="1.1" | ||
9 | id="svg3626" | ||
10 | viewBox="0 0 300.00006 244.18703" | ||
11 | height="244.18703" | ||
12 | width="300.00006"> | ||
13 | <defs | ||
14 | id="defs3628" /> | ||
15 | <metadata | ||
16 | id="metadata3631"> | ||
17 | <rdf:RDF> | ||
18 | <cc:Work | ||
19 | rdf:about=""> | ||
20 | <dc:format>image/svg+xml</dc:format> | ||
21 | <dc:type | ||
22 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
23 | <dc:title></dc:title> | ||
24 | </cc:Work> | ||
25 | </rdf:RDF> | ||
26 | </metadata> | ||
27 | <g | ||
28 | transform="translate(-539.17946,-568.85777)" | ||
29 | id="layer1"> | ||
30 | <path | ||
31 | id="path3611" | ||
32 | style="fill:#1da1f2;fill-opacity:1;fill-rule:nonzero;stroke:none" | ||
33 | d="m 633.89823,812.04479 c 112.46038,0 173.95627,-93.16765 173.95627,-173.95625 0,-2.64628 -0.0539,-5.28062 -0.1726,-7.90305 11.93799,-8.63016 22.31446,-19.39999 30.49762,-31.65984 -10.95459,4.86937 -22.74358,8.14741 -35.11071,9.62551 12.62341,-7.56929 22.31446,-19.54304 26.88583,-33.81739 -11.81284,7.00307 -24.89517,12.09297 -38.82383,14.84055 -11.15723,-11.88436 -27.04079,-19.31655 -44.62892,-19.31655 -33.76374,0 -61.14426,27.38052 -61.14426,61.13233 0,4.79784 0.5364,9.46458 1.58538,13.94057 -50.81546,-2.55686 -95.87353,-26.88582 -126.02546,-63.87991 -5.25082,9.03545 -8.27852,19.53111 -8.27852,30.73006 0,21.21186 10.79366,39.93837 27.20766,50.89296 -10.03077,-0.30992 -19.45363,-3.06348 -27.69044,-7.64676 -0.009,0.25652 -0.009,0.50661 -0.009,0.78077 0,29.60957 21.07478,54.3319 49.0513,59.93435 -5.13757,1.40062 -10.54335,2.15158 -16.12196,2.15158 -3.93364,0 -7.76596,-0.38716 -11.49099,-1.1026 7.78383,24.2932 30.35457,41.97073 57.11525,42.46543 -20.92578,16.40207 -47.28712,26.17062 -75.93712,26.17062 -4.92898,0 -9.79834,-0.28036 -14.58427,-0.84634 27.05868,17.34379 59.18936,27.46396 93.72193,27.46396" /> | ||
34 | </g> | ||
35 | </svg> | ||
diff --git a/uncompressed/twitter/package.json b/uncompressed/twitter/package.json index 407a1a4..831c1ec 100644 --- a/uncompressed/twitter/package.json +++ b/uncompressed/twitter/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "twitter", | 2 | "id": "twitter", |
3 | "name": "Twitter", | 3 | "name": "Twitter", |
4 | "version": "1.1.0", | 4 | "version": "1.1.1", |
5 | "description": "Twitter", | 5 | "description": "Twitter", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Ferdi Team <hello@getferdi.com> and Jason White <jdwhite@menelos.com>", | 7 | "author": "Ferdi Team <hello@getferdi.com> and Jason White <jdwhite@menelos.com>", |
diff --git a/uncompressed/twitter/webview.js b/uncompressed/twitter/webview.js index 75655f1..81f0ba5 100644 --- a/uncompressed/twitter/webview.js +++ b/uncompressed/twitter/webview.js | |||
@@ -6,9 +6,15 @@ module.exports = Franz => { | |||
6 | 6 | ||
7 | // "Notifications" and "Messages" - aria-label ending in | 7 | // "Notifications" and "Messages" - aria-label ending in |
8 | // "unread items". Sum the values for direct badge. | 8 | // "unread items". Sum the values for direct badge. |
9 | direct += document.querySelector('[data-testid=AppTabBar_Notifications_Link] div div div').innerHTML; | 9 | const notificationsElement = document.querySelector('[data-testid=AppTabBar_Notifications_Link] div div div'); |
10 | direct += document.querySelector('[data-testid=AppTabBar_DirectMessage_Link] div div div').innerHTML; | 10 | if (notificationsElement) { |
11 | 11 | direct += notificationsElement.innerHTML; | |
12 | } | ||
13 | const DMElement = document.querySelector('[data-testid=AppTabBar_DirectMessage_Link] div div div'); | ||
14 | if (DMElement) { | ||
15 | direct += DMElement.innerHTML; | ||
16 | } | ||
17 | |||
12 | Franz.setBadge(direct); | 18 | Franz.setBadge(direct); |
13 | }; | 19 | }; |
14 | 20 | ||