Skip to content

Commit 05a2545

Browse files
committed
Platform Gift Classes Adjustment
1 parent 862ca88 commit 05a2545

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

js/modules/kick/module.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const kickSubBadges = [];
2424
const kickWebSocketURL = 'wss://ws-us2.pusher.com/app/32cbd69e4b950bf97679?protocol=7&client=js&version=8.4.0&flash=false';
2525

2626
const kicksGiftsClasses = [
27-
{ min: 1, max: 99, class: 'normal-gift' },
27+
{ min: 1, max: 9, class: 'normal-gift' },
28+
{ min: 10, max: 49, class: 'bigger-than-10' },
29+
{ min: 50, max: 99, class: 'bigger-than-50' },
2830
{ min: 100, max: 499, class: 'bigger-than-100' },
2931
{ min: 500, max: 999, class: 'bigger-than-500' },
3032
{ min: 1000, max: 4999, class: 'bigger-than-1000' },

js/modules/tiktok/module.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const showTikTokSubs = getURLParam("showTikTokSubs", true);
1414
const showTikTokStatistics = getURLParam("showTikTokStatistics", true);
1515

1616
const tiktokGiftsClasses = [
17-
{ min: 1, max: 99, class: 'normal-gift' },
17+
{ min: 1, max: 9, class: 'normal-gift' },
18+
{ min: 10, max: 49, class: 'bigger-than-10' },
19+
{ min: 50, max: 99, class: 'bigger-than-50' },
1820
{ min: 100, max: 499, class: 'bigger-than-100' },
1921
{ min: 500, max: 999, class: 'bigger-than-500' },
2022
{ min: 1000, max: 4999, class: 'bigger-than-1000' },

js/modules/twitch/module.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ const twitchAvatars = new Map();
2222
const twitchPronouns = new Map();
2323

2424
const bitsGifAnimations = [
25-
{ min: 1, max: 99, gifId: 1 },
26-
{ min: 100, max: 999, gifId: 100 },
27-
{ min: 1000, max: 4999, gifId: 1000 },
28-
{ min: 5000, max: 9999, gifId: 5000 },
29-
{ min: 10000, max: 99999, gifId: 10000 },
30-
{ min: 100000, max: 1000000000000000, gifId: 100000 },
25+
{ min: 1, max: 9, class: 'normal-gift' },
26+
{ min: 10, max: 49, class: 'bigger-than-10' },
27+
{ min: 50, max: 99, class: 'bigger-than-50' },
28+
{ min: 100, max: 499, class: 'bigger-than-100' },
29+
{ min: 500, max: 999, class: 'bigger-than-500' },
30+
{ min: 1000, max: 4999, class: 'bigger-than-1000' },
31+
{ min: 5000, max: 9999, class: 'bigger-than-5000' },
32+
{ min: 10000, max: 49999, class: 'bigger-than-10000' },
33+
{ min: 50000, max: 99999, class: 'bigger-than-50000' },
34+
{ min: 100000, max: 99999999999, class: 'bigger-than-100000' },
3135
];
3236

3337

0 commit comments

Comments
 (0)