Skip to content

Commit da259ad

Browse files
committed
For Streamer.bot 1.0.5 beta.5
1 parent 94bfe63 commit da259ad

5 files changed

Lines changed: 40 additions & 39 deletions

File tree

beta/chat.html

Lines changed: 29 additions & 29 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=04">
16+
<link rel="stylesheet" href="css/chatrd.css?nocache=05">
1717
<link id="chatrd-skins" rel="stylesheet" href="css/skin-default.css">
1818

1919
<meta name="robots" content="noindex, nofollow">
@@ -174,47 +174,47 @@
174174
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web/pusher.min.js"></script>
175175
<script src="https://unpkg.com/@streamerbot/client/dist/streamerbot-client.js"></script>
176176

177-
<script src="js/i18n-chatrd.js?nocache=04"></script>
177+
<script src="js/i18n-chatrd.js?nocache=05"></script>
178178

179-
<script src="js/speakerbot.js?nocache=04"></script>
180-
<script src="js/sb.js?nocache=04"></script>
181-
<script src="js/queue.js?nocache=04"></script>
179+
<script src="js/speakerbot.js?nocache=05"></script>
180+
<script src="js/sb.js?nocache=05"></script>
181+
<script src="js/queue.js?nocache=05"></script>
182182

183-
<script src="js/chatrd.js?nocache=04"></script>
183+
<script src="js/chatrd.js?nocache=05"></script>
184184

185-
<script src="js/modules/twitch/addon-seventv-paint.js?nocache=04"></script>
186-
<script src="js/modules/twitch/addon-message-effects-canvas.js?nocache=04"></script>
187-
<script src="js/modules/twitch/addon-on-screen-celebration.js?nocache=04"></script>
185+
<script src="js/modules/twitch/addon-seventv-paint.js?nocache=05"></script>
186+
<script src="js/modules/twitch/addon-message-effects-canvas.js?nocache=05"></script>
187+
<script src="js/modules/twitch/addon-on-screen-celebration.js?nocache=05"></script>
188188

189-
<link href="js/modules/twitch/module.css?nocache=04" rel="stylesheet">
190-
<script src="js/modules/twitch/module.js?nocache=04"></script>
189+
<link href="js/modules/twitch/module.css?nocache=05" rel="stylesheet">
190+
<script src="js/modules/twitch/module.js?nocache=05"></script>
191191

192-
<link href="js/modules/youtube/module.css?nocache=04" rel="stylesheet">
193-
<script src="js/modules/youtube/module.js?nocache=04"></script>
192+
<link href="js/modules/youtube/module.css?nocache=05" rel="stylesheet">
193+
<script src="js/modules/youtube/module.js?nocache=05"></script>
194194

195-
<link href="js/modules/tiktok/module.css?nocache=04" rel="stylesheet">
196-
<script src="js/modules/tiktok/module.js?nocache=04"></script>
195+
<link href="js/modules/tiktok/module.css?nocache=05" rel="stylesheet">
196+
<script src="js/modules/tiktok/module.js?nocache=05"></script>
197197

198-
<link href="js/modules/kick/module.css?nocache=04" rel="stylesheet">
199-
<script src="js/modules/kick/module.js?nocache=04"></script>
198+
<link href="js/modules/kick/module.css?nocache=05" rel="stylesheet">
199+
<script src="js/modules/kick/module.js?nocache=05"></script>
200200

201-
<link href="js/modules/streamelements/module.css?nocache=04" rel="stylesheet">
202-
<script src="js/modules/streamelements/module.js?nocache=04"></script>
201+
<link href="js/modules/streamelements/module.css?nocache=05" rel="stylesheet">
202+
<script src="js/modules/streamelements/module.js?nocache=05"></script>
203203

204-
<link href="js/modules/streamlabs/module.css?nocache=04" rel="stylesheet">
205-
<script src="js/modules/streamlabs/module.js?nocache=04"></script>
204+
<link href="js/modules/streamlabs/module.css?nocache=05" rel="stylesheet">
205+
<script src="js/modules/streamlabs/module.js?nocache=05"></script>
206206

207-
<link href="js/modules/patreon/module.css?nocache=04" rel="stylesheet">
208-
<script src="js/modules/patreon/module.js?nocache=04"></script>
207+
<link href="js/modules/patreon/module.css?nocache=05" rel="stylesheet">
208+
<script src="js/modules/patreon/module.js?nocache=05"></script>
209209

210-
<link href="js/modules/tipeeestream/module.css?nocache=04" rel="stylesheet">
211-
<script src="js/modules/tipeeestream/module.js?nocache=04"></script>
210+
<link href="js/modules/tipeeestream/module.css?nocache=05" rel="stylesheet">
211+
<script src="js/modules/tipeeestream/module.js?nocache=05"></script>
212212

213-
<link href="js/modules/kofi/module.css?nocache=04" rel="stylesheet">
214-
<script src="js/modules/kofi/module.js?nocache=04"></script>
213+
<link href="js/modules/kofi/module.css?nocache=05" rel="stylesheet">
214+
<script src="js/modules/kofi/module.js?nocache=05"></script>
215215

216-
<link href="js/modules/fourthwall/module.css?nocache=04" rel="stylesheet">
217-
<script src="js/modules/fourthwall/module.js?nocache=04"></script>
216+
<link href="js/modules/fourthwall/module.css?nocache=05" rel="stylesheet">
217+
<script src="js/modules/fourthwall/module.js?nocache=05"></script>
218218

219219
<script src="js/testmode.js"></script>
220220

beta/css/chatrd.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ html {
3434
overflow-wrap: break-word;
3535
scroll-behavior: smooth;
3636
font-size: 16px;
37-
background-color: #121212;
3837
}
3938

4039

beta/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,9 +1757,9 @@ <h3><span data-i18n="modal.streamerbot.title">⚠️ Streamer.bot Actions Not Fo
17571757
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js"></script>
17581758
<script src="https://unpkg.com/@streamerbot/client/dist/streamerbot-client.js"></script>
17591759

1760-
<script src="js/i18n-settings.js?nocache=04"></script>
1761-
<script src="js/speakerbot.js?nocache=04"></script>
1760+
<script src="js/i18n-settings.js?nocache=05"></script>
1761+
<script src="js/speakerbot.js?nocache=05"></script>
17621762

1763-
<script type="module" src="js/settings.js?nocache=04"></script>
1763+
<script type="module" src="js/settings.js?nocache=05"></script>
17641764
</body>
17651765
</html>

beta/js/chatrd.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
let myConfetti;
66

7+
const preview = getURLParam("preview", false);
78
const showPlatform = getURLParam("showPlatform", true);
89
const showAvatar = getURLParam("showAvatar", true);
910
const showTimestamps = getURLParam("showTimestamps", true);
@@ -75,10 +76,10 @@ const loadedEmotes = new Set();
7576

7677

7778
const SKINS = {
78-
default: "skin-default.css?nocache=04",
79-
nutting: "skin-nutting.css?nocache=04",
80-
kimballs: "skin-kimballs.css?nocache=04",
81-
bubbles: "skin-bubbles.css?nocache=04"
79+
default: "skin-default.css?nocache=05",
80+
nutting: "skin-nutting.css?nocache=05",
81+
kimballs: "skin-kimballs.css?nocache=05",
82+
bubbles: "skin-bubbles.css?nocache=05"
8283
};
8384

8485
const skinFile = SKINS[skin] || SKINS.default;
@@ -114,6 +115,7 @@ if (!chatHorizontal && !chatOneLine) {
114115

115116
let backgroundColor = hexToRGBA(chatBackground,chatBackgroundOpacity);
116117
document.body.style.backgroundColor = backgroundColor;
118+
if (preview == true) document.documentElement.style.backgroundColor = "#121212";
117119

118120
chatContainer.style.zoom = size;
119121
chatGhostContainer.style.zoom = size;

beta/js/settings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function loadChatRDSettings() {
8989
console.debug('[ChatRD][Settings] Widget Settings Loaded on Local Storage onto the Settings.', settings);
9090

9191
const url = await getChatRDUrl();
92-
document.querySelector('#chatRDPreview').src = url;
92+
document.querySelector('#chatRDPreview').src = url + `&preview=true`;
9393
}
9494

9595
async function collectChatRDSettings() {
@@ -155,7 +155,7 @@ async function bindChatRDSettings() {
155155
localStorage.setItem('chatrdWidgetSettings', JSON.stringify(settings));
156156
console.debug('[ChatRD][Settings] Widget Settings Saved on Local Storage.', settings);
157157

158-
document.querySelector('#chatRDPreview').src = url;
158+
document.querySelector('#chatRDPreview').src = url + `&preview=true`;
159159

160160
streamerBotConnect();
161161
speakerBotConnect();

0 commit comments

Comments
 (0)