From 7611721459063c4d8c5c224a60278a0dde94c1c8 Mon Sep 17 00:00:00 2001 From: Mute Date: Wed, 6 Jul 2022 21:56:18 +0000 Subject: [PATCH] select background colour depending on current theme --- mbchc-local.user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mbchc-local.user.js b/mbchc-local.user.js index aa099d1..a6510fd 100644 --- a/mbchc-local.user.js +++ b/mbchc-local.user.js @@ -210,7 +210,8 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER if (options.dot && result.match(/[\w]$/)) result = `${result}.` return(result) }, - inform: function(html) { window.ChatRoomSendLocal(`
${html}
`, 60000) }, + bg_colour: function() { return(document.getElementById("TextAreaChatLog").dataset.colortheme.startsWith("light") ? this.RGB_POLLY : this.RGB_MUTE) }, + inform: function(html) { window.ChatRoomSendLocal(`
${html}
`, 60000) }, report: function(x) { this.inform(`Error: ${x.toString()}`) }, id2char: function(id) { return(window.ChatRoomCharacter.find( c => c.MemberNumber === Number.parseInt(id) )) }, donate_data: function(recipient) {