Merge branch 'release' into InfermaticAI

This commit is contained in:
NWilson
2024-02-16 08:53:04 -06:00
168 changed files with 4313 additions and 3901 deletions

View File

@@ -60,6 +60,16 @@ const observer = new MutationObserver(function (mutations) {
RA_checkOnlineStatus();
} else if (mutation.target.parentNode === SelectedCharacterTab) {
setTimeout(RA_CountCharTokens, 200);
} else if (mutation.target.classList.contains('mes_text')) {
if (mutation.target instanceof HTMLElement) {
for (const element of mutation.target.getElementsByTagName('math')) {
element.childNodes.forEach(function (child) {
if (child.nodeType === Node.TEXT_NODE) {
child.textContent = '';
}
});
}
}
}
});
});
@@ -1007,7 +1017,7 @@ export function initRossMods() {
<input type="checkbox" id="regenerateWithCtrlEnter">
Don't ask again
</label>`;
callPopup(popupText, 'confirm').then(result =>{
callPopup(popupText, 'confirm').then(result => {
if (!result) {
return;
}
@@ -1123,13 +1133,15 @@ export function initRossMods() {
.not('#right-nav-panel')
.not('#floatingPrompt')
.not('#cfgConfig')
.not('#logprobsViewer')
.is(':visible')) {
let visibleDrawerContent = $('.drawer-content:visible')
.not('#WorldInfo')
.not('#left-nav-panel')
.not('#right-nav-panel')
.not('#floatingPrompt')
.not('#cfgConfig');
.not('#cfgConfig')
.not('#logprobsViewer');
$(visibleDrawerContent).parent().find('.drawer-icon').trigger('click');
return;
}
@@ -1149,6 +1161,11 @@ export function initRossMods() {
return;
}
if ($('#logprobsViewer').is(':visible')) {
$('#logprobsViewerClose').trigger('click');
return;
}
if ($('#left-nav-panel').is(':visible') &&
$(LPanelPin).prop('checked') === false) {
$('#leftNavDrawerIcon').trigger('click');