|
5 | 5 | // @match https://mastodon.social/*
|
6 | 6 | // @match https://piaille.fr/*
|
7 | 7 | // @match https://eldritch.cafe/*
|
| 8 | +// @match https://h-i.social/* |
8 | 9 | // @match https://AddYourInstanceUrlHere.tld/*
|
9 | 10 | // @downloadURL https://github.com/Write/TangerineUI-Userscript/raw/main/TangerineUI.user.js
|
10 | 11 | // @updateURL https://github.com/Write/TangerineUI-Userscript/raw/main/TangerineUI.user.js
|
11 | 12 | // @homepageURL https://github.com/Write/TangerineUI-Userscript
|
12 | 13 | // @grant none
|
13 |
| -// @version 2.1.2 |
| 14 | +// @version 2.2.0 |
14 | 15 | // @author @Write on Github for the UserScript
|
15 | 16 | // @author @nileane for TangerineUI's CSS
|
16 | 17 | // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACE0lEQVR4AZXOA2xeUQAF4BvNW8xGi7WFY227v81otu0Fs23btq3attunvrN7//bOPMmX98414bFa4edyda12u7te0m8d1UKhRyNVT32idrtcGE6+jdMpBzjtUjOFf2KTZJddchKWsWPR22HprKLATBwnYOM6CfNni+Bjs2d0j02ZKLDOCVZrhx9xGNuT7aY2MAvmdKCjQwXP0UMidm4ToPYMiSKwcmkn+Hqbsd1L7LqWqTZ9M5injyXf4oN7O3HkQCdkGRAEFWdOCNi9vROKAnx8L4Ovt+uaZhCbpn6eTVsPpjBfRkN9F3ivLFfQ0qJ+6SXFCupqv86zvcSWVjPTml4DprhQRm21At7ZgbU1X3tBnoxGegHvlvSa2cSaUjXWklIJhh/Ae2Ge5DuA94JcyfdC3q2plVOJObncYU4qA1NcIPkO4H2soxLjXZW80wNEesDXeVNSqYcY44s1pvhiMDcvt+LB7Tbw/qPrF1rx+F77l25IKh1KjNEFw40xBfhfhpiCs4RFE/JxgDEqR6Xwj5qptZaot/0JjyE867UhPBOcMeJThCH8U6QhLNNgjMj06iMyjfQ/0RSROSQ2Nrc3+TG60I/J+tAPKgWfsI/7NaMe9SXfxBSbO4j8Kdrgdx5d0FuBQrd3zbrgN28Y2quofPK3aILeDtb6v1yt8X/5Suv/qo0Sdf6vijT+r05q/F9Hkl/kM/y+SpUd6mHfAAAAAElFTkSuQmCC
|
|
29 | 30 | const legacyColorScheme = 'tangerine';
|
30 | 31 |
|
31 | 32 | /* colorScheme used for new (>= 4.3) instances */
|
32 |
| - /* Either 'tangerine', 'purple' or 'cherry' */ |
33 |
| - const newColorScheme = 'tangerine'; |
| 33 | + /* Either 'tangerine', 'purple', 'cherry' or 'lagoon' */ |
| 34 | + const colorScheme = 'tangerine'; |
34 | 35 |
|
35 | 36 | /* Github tag to use for mastodon instance < 4.3 and >= 4.3
|
36 | 37 | /* To find tags name, go here : https://github.com/nileane/TangerineUI-for-Mastodon/releases
|
37 | 38 | /* and look at the tag name in the left sidebar of the release
|
38 | 39 | * */
|
39 | 40 | const tag_below_4_3_0 = "v1.9.5"
|
40 |
| - const tag_above_or_equals_4_3_0 = "v2.0.0-pre6" |
| 41 | + const tag_above_or_equals_4_3_0 = "v2.0" |
41 | 42 |
|
42 | 43 | /* ----------------
|
43 | 44 | * HELPERS
|
|
63 | 64 | }
|
64 | 65 |
|
65 | 66 | const isPurpleLegacy = legacyColorScheme.includes('purple') ? true : false;
|
66 |
| - const isPurple = newColorScheme.includes('purple') ? true : false; |
67 |
| - const isCherry = newColorScheme.includes('cherry') ? true : false; |
| 67 | + const isPurple = colorScheme.includes('purple') ? true : false; |
| 68 | + const isCherry = colorScheme.includes('cherry') ? true : false; |
| 69 | + const isLagoon = colorScheme.includes('lagoon') ? true : false; |
68 | 70 |
|
69 | 71 | const onElemAvailable = async selector => {
|
70 | 72 | while (document.querySelector(selector) === null) {
|
|
105 | 107 | styleUrl = tangerine_above_or_equals_4_3_0 + "-purple.min.css"
|
106 | 108 | else if (isCherry)
|
107 | 109 | styleUrl = tangerine_above_or_equals_4_3_0 + "-cherry.min.css"
|
| 110 | + else if (isLagoon) |
| 111 | + styleUrl = tangerine_above_or_equals_4_3_0 + "-lagoon.min.css" |
108 | 112 | else
|
109 | 113 | styleUrl = tangerine_above_or_equals_4_3_0 + ".min.css"
|
110 | 114 | } else {
|
|
0 commit comments