Skip to content

Commit ff77adc

Browse files
committed
TikTok Top Gifter Level Fix
1 parent 0440dbe commit ff77adc

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed

chat.html

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/simple-notify.min.css">
1414
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css">
1515

16-
<link rel="stylesheet" href="css/chatrd.css?nocache=12">
16+
<link rel="stylesheet" href="css/chatrd.css?nocache=13">
1717
</head>
1818
<body>
1919

@@ -99,38 +99,38 @@
9999
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js"></script>
100100
<script src="https://cdn.jsdelivr.net/npm/@streamerbot/[email protected]/dist/streamerbot-client.min.js"></script>
101101

102-
<script src="js/speakerbot.js?nocache=12"></script>
103-
<script src="js/sb.js?nocache=12"></script>
104-
<script src="js/chatrd.js?nocache=12"></script>
102+
<script src="js/speakerbot.js?nocache=13"></script>
103+
<script src="js/sb.js?nocache=13"></script>
104+
<script src="js/chatrd.js?nocache=13"></script>
105105

106-
<link href="js/modules/twitch/module.css?nocache=12" rel="stylesheet">
107-
<script src="js/modules/twitch/module.js?nocache=12"></script>
106+
<link href="js/modules/twitch/module.css?nocache=13" rel="stylesheet">
107+
<script src="js/modules/twitch/module.js?nocache=13"></script>
108108

109-
<link href="js/modules/youtube/module.css?nocache=12" rel="stylesheet">
110-
<script src="js/modules/youtube/module.js?nocache=12"></script>
109+
<link href="js/modules/youtube/module.css?nocache=13" rel="stylesheet">
110+
<script src="js/modules/youtube/module.js?nocache=13"></script>
111111

112-
<link href="js/modules/tiktok/module.css?nocache=12" rel="stylesheet">
113-
<script src="js/modules/tiktok/module.js?nocache=12"></script>
112+
<link href="js/modules/tiktok/module.css?nocache=13" rel="stylesheet">
113+
<script src="js/modules/tiktok/module.js?nocache=13"></script>
114114

115-
<link href="js/modules/kick/module.css?nocache=12" rel="stylesheet">
116-
<script src="js/modules/kick/module.js?nocache=12"></script>
115+
<link href="js/modules/kick/module.css?nocache=13" rel="stylesheet">
116+
<script src="js/modules/kick/module.js?nocache=13"></script>
117117

118-
<link href="js/modules/streamelements/module.css?nocache=12" rel="stylesheet">
119-
<script src="js/modules/streamelements/module.js?nocache=12"></script>
118+
<link href="js/modules/streamelements/module.css?nocache=13" rel="stylesheet">
119+
<script src="js/modules/streamelements/module.js?nocache=13"></script>
120120

121-
<link href="js/modules/streamlabs/module.css?nocache=12" rel="stylesheet">
122-
<script src="js/modules/streamlabs/module.js?nocache=12"></script>
121+
<link href="js/modules/streamlabs/module.css?nocache=13" rel="stylesheet">
122+
<script src="js/modules/streamlabs/module.js?nocache=13"></script>
123123

124-
<link href="js/modules/patreon/module.css?nocache=12" rel="stylesheet">
125-
<script src="js/modules/patreon/module.js?nocache=12"></script>
124+
<link href="js/modules/patreon/module.css?nocache=13" rel="stylesheet">
125+
<script src="js/modules/patreon/module.js?nocache=13"></script>
126126

127-
<link href="js/modules/tipeeestream/module.css?nocache=12" rel="stylesheet">
128-
<script src="js/modules/tipeeestream/module.js?nocache=12"></script>
127+
<link href="js/modules/tipeeestream/module.css?nocache=13" rel="stylesheet">
128+
<script src="js/modules/tipeeestream/module.js?nocache=13"></script>
129129

130-
<link href="js/modules/kofi/module.css?nocache=12" rel="stylesheet">
131-
<script src="js/modules/kofi/module.js?nocache=12"></script>
130+
<link href="js/modules/kofi/module.css?nocache=13" rel="stylesheet">
131+
<script src="js/modules/kofi/module.js?nocache=13"></script>
132132

133-
<link href="js/modules/fourthwall/module.css?nocache=12" rel="stylesheet">
134-
<script src="js/modules/fourthwall/module.js?nocache=12"></script>
133+
<link href="js/modules/fourthwall/module.css?nocache=13" rel="stylesheet">
134+
<script src="js/modules/fourthwall/module.js?nocache=13"></script>
135135
</body>
136136
</html>

js/modules/tiktok/module.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ async function tiktokChatMessage(data) {
195195

196196
const [avatarImage, badgesHTML] = await Promise.all([
197197
getTikTokAvatar(data),
198-
199198
getTikTokBadges(data),
200199
]);
201200

@@ -618,7 +617,7 @@ async function getTikTokBadges(data) {
618617
badgesHTML.push(
619618
`<span class="badge top-gifter">
620619
<img src="${badge.url}" alt="${badge.displayType}">
621-
<em>No. ${badge.displayType}</em>
620+
<em>No. ${data.topGifterRank}</em>
622621
</span>`
623622
);
624623
}
@@ -670,4 +669,7 @@ async function tiktokUpdateStatistics(data, type) {
670669
document.querySelector('#statistics #tiktok .likes span').textContent = likes;
671670
}
672671

673-
}
672+
}
673+
674+
675+

0 commit comments

Comments
 (0)