diff --git a/horizontal-chat/script.js b/horizontal-chat/script.js index ba14644..7d5fb05 100644 --- a/horizontal-chat/script.js +++ b/horizontal-chat/script.js @@ -81,6 +81,9 @@ const furryMode = GetBooleanParam("furryMode", false); const animationSpeed = GetIntParam("animationSpeed", 0.5); +// Kick is stupid and turns underscores into dashes which fuck everything up, therefore do a find/replace to make it work good +kickUsername = kickUsername.replace(/_/g, "-"); + // Set fonts for the widget document.body.style.fontFamily = font; document.body.style.fontSize = `${fontSize}px`; diff --git a/multichat-overlay/script.js b/multichat-overlay/script.js index b1c6c31..1c3cf63 100644 --- a/multichat-overlay/script.js +++ b/multichat-overlay/script.js @@ -55,7 +55,7 @@ const showTwitchChannelPointRedemptions = GetBooleanParam("showTwitchChannelPoin const showTwitchRaids = GetBooleanParam("showTwitchRaids", true); const showTwitchSharedChat = GetIntParam("showTwitchSharedChat", 2); -const kickUsername = urlParams.get("kickUsername") || ""; +let kickUsername = urlParams.get("kickUsername") || ""; const showKickMessages = GetBooleanParam("showKickMessages", true); // const showKickFollows = GetBooleanParam("showKickFollows", false); const showKickSubs = GetBooleanParam("showKickSubs", true); @@ -85,6 +85,9 @@ const furryMode = GetBooleanParam("furryMode", false); const animationSpeed = GetIntParam("animationSpeed", 0.1); +// Kick is stupid and turns underscores into dashes which fuck everything up, therefore do a find/replace to make it work good +kickUsername = kickUsername.replace(/_/g, "-"); + // Set fonts for the widget document.body.style.fontFamily = font; document.body.style.fontSize = `${fontSize}px`; diff --git a/multistream-alerts/script.js b/multistream-alerts/script.js index 563a667..5e1ee13 100644 --- a/multistream-alerts/script.js +++ b/multistream-alerts/script.js @@ -107,6 +107,9 @@ const tipeeestreamDonationAction = urlParams.get("tipeeestreamDonationAction") | const showFourthwallAlerts = GetBooleanParam("showFourthwallAlerts", false); const fourthwallAlertAction = urlParams.get("fourthwallAlertAction") || ""; +// Kick is stupid and turns underscores into dashes which fuck everything up, therefore do a find/replace to make it work good +kickUsername = kickUsername.replace(/_/g, "-"); + // Set avatar visibility if (!showAvatar) { avatarElement.style.display = 'none';