summaryrefslogtreecommitdiff
path: root/twitch.html
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-10-26 21:48:53 +0500
committerilotterytea <iltsu@alright.party>2025-10-26 21:48:53 +0500
commit5069975b6987d42a2c3d15a8e95d546cd8c743eb (patch)
treebf6563c18e1d293e7a3e91badfe76a0fcc5bd493 /twitch.html
parentc3465bddcbb1da935160b0f0612e6616ab927279 (diff)
feat: tinyemotes support
Diffstat (limited to 'twitch.html')
-rw-r--r--twitch.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/twitch.html b/twitch.html
index ff77bca..9adc40c 100644
--- a/twitch.html
+++ b/twitch.html
@@ -15,7 +15,9 @@
<script src="/scripts/badges.js"></script>
<script>
let user = null;
- const params = {};
+ const params = {
+ "tinyemotesinstances": null
+ };
const badges = {};
const emotes = {};
@@ -49,6 +51,14 @@
() => get7TVChannelEmotes(user["id"], emotes),
() => get7TVGlobalEmotes(emotes),
];
+
+ if (params["tinyemotesinstances"] != null) {
+ for (const url of params["tinyemotesinstances"].split("\n")) {
+ emotePromises.push(() => getTinyemotesChannelEmotes(url, user["id"], emotes));
+ emotePromises.push(() => getTinyemotesGlobalEmotes(url, emotes));
+ }
+ }
+
emotePromises
.reduce((p, fn) => p.then(fn), Promise.resolve())
.then(() => addSystemMessage("All emotes loaded"));