From 2ae467d14fc404c57e6b0dfd64853c870f108142 Mon Sep 17 00:00:00 2001 From: Cohee Date: Sat, 17 Jun 2023 18:30:05 +0300 Subject: [PATCH 1/4] Grammarly extension no longer hides in shame behind the textarea --- public/style.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/style.css b/public/style.css index 2bbbec68b..a0d49b72a 100644 --- a/public/style.css +++ b/public/style.css @@ -1546,6 +1546,10 @@ input[type=search]:focus::-webkit-search-cancel-button { align-items: center; } +grammarly-extension { + z-index: 1; +} + .avatar-container:hover .avatar-buttons { display: flex; } @@ -4637,4 +4641,4 @@ body.waifuMode #avatar_zoom_popup { #horde_model { height: unset; } -} \ No newline at end of file +} From 64fcb4b1f079587077fe9e253cb466a04edd5bdf Mon Sep 17 00:00:00 2001 From: Cohee Date: Sat, 17 Jun 2023 19:48:20 +0300 Subject: [PATCH 2/4] Adjust css index --- public/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/style.css b/public/style.css index a0d49b72a..a11d16996 100644 --- a/public/style.css +++ b/public/style.css @@ -1547,7 +1547,7 @@ input[type=search]:focus::-webkit-search-cancel-button { } grammarly-extension { - z-index: 1; + z-index: 35; } .avatar-container:hover .avatar-buttons { From 2edebec52cb225a932b72888ec871a0444a688db Mon Sep 17 00:00:00 2001 From: Cohee Date: Sat, 17 Jun 2023 20:23:03 +0300 Subject: [PATCH 3/4] Auto-balance quotes on streaming --- public/script.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/public/script.js b/public/script.js index a94b00a43..23b86ee5f 100644 --- a/public/script.js +++ b/public/script.js @@ -1631,10 +1631,13 @@ class StreamingProcessor { let isName = result.this_mes_is_name; processedText = result.getMessage; - // Predict unbalanced asterisks during streaming - if (!isFinal && isOdd(countOccurrences(processedText, '*'))) { - // Add asterisk at the end to balance it - processedText = processedText.trimEnd() + '*'; + // Predict unbalanced asterisks / quotes during streaming + const charsToBalance = ['*', '"']; + for (const char of charsToBalance) { + if (!isFinal && isOdd(countOccurrences(processedText, char))) { + // Add character at the end to balance it + processedText = processedText.trimEnd() + char; + } } if (isImpersonate) { From b85605cac85a5af7f058113e71a7f9c68d696e87 Mon Sep 17 00:00:00 2001 From: Cohee Date: Sat, 17 Jun 2023 20:28:02 +0300 Subject: [PATCH 4/4] Don't auto-select chat.comp preset if it's already selected --- public/scripts/openai.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index cabfcc872..801995bdb 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -1134,6 +1134,11 @@ function trySelectPresetByName(name) { } } + // Don't change if the current preset is the same + if (preset_found && preset_found === oai_settings.preset_settings_openai) { + return; + } + if (preset_found) { oai_settings.preset_settings_openai = preset_found; const value = openai_setting_names[preset_found]