From f5a8941e5be4e1336cfde2245272470f0c39ca77 Mon Sep 17 00:00:00 2001 From: nuttylmao Date: Mon, 22 Sep 2025 08:06:16 +1000 Subject: [PATCH] Removed test code --- horizontal-chat/script.js | 59 ++----------------------------------- multichat-overlay/script.js | 59 ++----------------------------------- 2 files changed, 4 insertions(+), 114 deletions(-) diff --git a/horizontal-chat/script.js b/horizontal-chat/script.js index 6cf5fbe..9510918 100644 --- a/horizontal-chat/script.js +++ b/horizontal-chat/script.js @@ -904,8 +904,7 @@ function YouTubeMessage(data) { badgeListDiv.appendChild(badge); } - // if (data.user.isSponsor && showBadges) { - if (!data.user.isSponsor && showBadges) { + if (data.user.isSponsor && showBadges) { const badge = new Image(); if (youtubeCustomSubIcon) badge.src = youtubeCustomSubIcon; @@ -1797,58 +1796,4 @@ function SetConnectionStatus(connected) { statusContainer.style.transition = ""; statusContainer.style.opacity = 1; } -} - -let data = { - "message": "Dat quality šŸ‘€", - "emotes": [ - { - "type": "Twemoji", - "name": "šŸ‘€", - "startIndex": 12, - "endIndex": 13, - "imageUrl": "https://cdn.jsdelivr.net/gh/jdecked/twemoji@16.0.0/assets/72x72/1f440.png" - } - ], - "parts": [ - { - "text": "Dat quality šŸ‘€" - } - ], - "broadcast": { - "id": "x6kgY3g_64U", - "channelId": "UCI5t_ve3cr5a1_3rrmbp6jQ", - "liveChatId": "KicKGFVDSTV0X3ZlM2NyNWExXzNycm1icDZqURILeDZrZ1kzZ182NFU", - "title": "Testing 1440p Enhanced Broadcasting šŸ‘€šŸ‘€", - "description": "šŸ”„ *DOWNLOAD MY CUSTOM WIDGETS FOR YOUR STREAM*\n*https://nutty.gg*\n\nšŸ“ø *Streaming gear I use*\nhttps://nutty.gg/gear\n\nšŸŽ™ļø *Elgato Products*\nhttps://elgato.sjv.io/oqZN09 - 5% OFF with code \"nutty\"\n\nšŸ–¼ļø *Nerd Or Die*\nhttps://nerdordie.com/shop/ref/nuttylmao - 15% OFF with code \"nutty\"\n\nšŸŽµ *Epidemic Sound - Royalty Free Music + Sound FX*\nhttp://share.epidemicsound.com/nutty\n\nāœ‰ļø *Business Inquiries Only*\nnuttylmao@gmail.com\n\n*Socials*\nhttps://www.youtube.com/nuttylmao\nhttps://www.twitch.tv/nutty\nhttps://twitter.com/nuttylmao\nhttps://discord.gg/V4rvjrb\nhttps://www.patreon.com/nuttylmao", - "categoryId": "20", - "privacy": "unlisted", - "publishedAt": "2025-09-19T14:21:41Z", - "scheduledStartTime": "2025-09-19T14:25:14.3844374Z", - "scheduledEndTime": "2025-09-19T14:25:14.3844374Z", - "actualStartTime": "2025-09-19T14:25:14.3844374Z", - "actualEndTime": "2025-09-19T14:25:14.3844374Z", - "tags": [ - "nutty" - ], - "defaultLanguage": "en", - "defaultAudioLanguage": "en", - "status": "live" - }, - "eventId": "LCC.EhwKGkNJX2gwODJLNVk4REZYVEN3Z1FkWkZvREdR", - "user": { - "id": "UCI5t_ve3cr5a1_3rrmbp6jQ", - "url": "http://www.youtube.com/channel/UCI5t_ve3cr5a1_3rrmbp6jQ", - "name": "nutty", - "profileImageUrl": "https://yt3.ggpht.com/_blHaUIZf6nNjjTwdM5XFBusQVBr-KDat0H3w1v4Yeni_ZAPGQBg5ExckFXwzStcW36YzxEz=s88-c-k-c0x00ffffff-no-rj", - "isOwner": true, - "isModerator": false, - "isSponsor": false, - "isVerified": false - }, - "publishedAt": "2025-09-20T00:55:38.715543+10:00" - } - - setTimeout(() => { - YouTubeMessage(data); - }, 1000); \ No newline at end of file +} \ No newline at end of file diff --git a/multichat-overlay/script.js b/multichat-overlay/script.js index 23c6b1e..bb0be87 100644 --- a/multichat-overlay/script.js +++ b/multichat-overlay/script.js @@ -1298,8 +1298,7 @@ async function YouTubeMessage(data) { badgeListDiv.appendChild(badge); } - // if (data.user.isSponsor && showBadges) { - if (!data.user.isSponsor && showBadges) { + if (data.user.isSponsor && showBadges) { const badge = new Image(); if (youtubeCustomSubIcon) badge.src = youtubeCustomSubIcon; @@ -3175,58 +3174,4 @@ async function GetYouTubeVideoData(videoId) { console.error('Error fetching YouTube video data:', error); return null; } -} - -let data = { - "message": "Dat quality šŸ‘€", - "emotes": [ - { - "type": "Twemoji", - "name": "šŸ‘€", - "startIndex": 12, - "endIndex": 13, - "imageUrl": "https://cdn.jsdelivr.net/gh/jdecked/twemoji@16.0.0/assets/72x72/1f440.png" - } - ], - "parts": [ - { - "text": "Dat quality šŸ‘€" - } - ], - "broadcast": { - "id": "x6kgY3g_64U", - "channelId": "UCI5t_ve3cr5a1_3rrmbp6jQ", - "liveChatId": "KicKGFVDSTV0X3ZlM2NyNWExXzNycm1icDZqURILeDZrZ1kzZ182NFU", - "title": "Testing 1440p Enhanced Broadcasting šŸ‘€šŸ‘€", - "description": "šŸ”„ *DOWNLOAD MY CUSTOM WIDGETS FOR YOUR STREAM*\n*https://nutty.gg*\n\nšŸ“ø *Streaming gear I use*\nhttps://nutty.gg/gear\n\nšŸŽ™ļø *Elgato Products*\nhttps://elgato.sjv.io/oqZN09 - 5% OFF with code \"nutty\"\n\nšŸ–¼ļø *Nerd Or Die*\nhttps://nerdordie.com/shop/ref/nuttylmao - 15% OFF with code \"nutty\"\n\nšŸŽµ *Epidemic Sound - Royalty Free Music + Sound FX*\nhttp://share.epidemicsound.com/nutty\n\nāœ‰ļø *Business Inquiries Only*\nnuttylmao@gmail.com\n\n*Socials*\nhttps://www.youtube.com/nuttylmao\nhttps://www.twitch.tv/nutty\nhttps://twitter.com/nuttylmao\nhttps://discord.gg/V4rvjrb\nhttps://www.patreon.com/nuttylmao", - "categoryId": "20", - "privacy": "unlisted", - "publishedAt": "2025-09-19T14:21:41Z", - "scheduledStartTime": "2025-09-19T14:25:14.3844374Z", - "scheduledEndTime": "2025-09-19T14:25:14.3844374Z", - "actualStartTime": "2025-09-19T14:25:14.3844374Z", - "actualEndTime": "2025-09-19T14:25:14.3844374Z", - "tags": [ - "nutty" - ], - "defaultLanguage": "en", - "defaultAudioLanguage": "en", - "status": "live" - }, - "eventId": "LCC.EhwKGkNJX2gwODJLNVk4REZYVEN3Z1FkWkZvREdR", - "user": { - "id": "UCI5t_ve3cr5a1_3rrmbp6jQ", - "url": "http://www.youtube.com/channel/UCI5t_ve3cr5a1_3rrmbp6jQ", - "name": "nutty", - "profileImageUrl": "https://yt3.ggpht.com/_blHaUIZf6nNjjTwdM5XFBusQVBr-KDat0H3w1v4Yeni_ZAPGQBg5ExckFXwzStcW36YzxEz=s88-c-k-c0x00ffffff-no-rj", - "isOwner": true, - "isModerator": false, - "isSponsor": false, - "isVerified": false - }, - "publishedAt": "2025-09-20T00:55:38.715543+10:00" - } - - setTimeout(() => { - YouTubeMessage(data); - }, 1000); \ No newline at end of file +} \ No newline at end of file