From bd9e739de2f4ce7e11150f7ac5450c6c715f85e8 Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Sun, 2 Jul 2023 19:10:04 +0900 Subject: [PATCH] new slash command: /resetpanels (alias /resetui) --- public/scripts/power-user.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index ff32322a6..58d612e7b 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -1077,6 +1077,9 @@ async function doDelMode(_, text) { } } +function doResetPanels() { + $("#movingUIreset").trigger('click'); +} $(document).ready(() => { // Settings that go to settings.json @@ -1489,4 +1492,5 @@ $(document).ready(() => { registerSlashCommand('random', doRandomChat, ['random'], ' – start a new chat with a random character', true, true); registerSlashCommand('delmode', doDelMode, ['del'], '(optional number) – enter message deletion mode, and auto-deletes N messages if numeric argument is provided', true, true); registerSlashCommand('cut', doMesCut, [], ' (requred number) – cuts the specified message from the chat', true, true); + registerSlashCommand('resetpanels', doResetPanels, ['resetui'], ' – resets UI panels to original state.', true, true); });