Skip to content

Commit

Permalink
提高对nvda等无障碍软件的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
xcanwin authored May 15, 2023
1 parent 4960924 commit 2deb384
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions KeepChatGPT.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name KeepChatGPT
// @description ChatGPT畅聊插件。解决所有报错,让我们的AI体验无比顺畅、丝滑、高效。持续更新的增强功能,如取消审计等。解决的报错如下: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com. (3) Conversation not found. (4) This content may violate our content policy.
// @version 12.7
// @version 12.8
// @author xcanwin
// @namespace https://github.com/xcanwin/KeepChatGPT/
// @supportURL https://github.com/xcanwin/KeepChatGPT/
Expand Down Expand Up @@ -169,11 +169,11 @@
if ($("#xcanwin") === null) {
const nIfr = document.createElement('iframe');
nIfr.id = "xcanwin";
nIfr.style = `height: 0px; width: 100%;`;
nIfr.style = `height: 80px; width: 100%; display: none;`;
if (gv("k_showDebug", false) === true) {
nIfr.style.height = '80px';
nIfr.style.display = '';
} else {
nIfr.style.height = '0px';
nIfr.style.display = 'none';
}
if (u) {
nIfr.src = u;
Expand Down Expand Up @@ -302,10 +302,10 @@

$('#nmenuid_sd').onclick = function() {
if ($('.checkbutton', this).classList.contains('checked')) {
$('#xcanwin').style.height = '0px';
$('#xcanwin').style.display = 'none';
sv("k_showDebug", false);
} else {
$('#xcanwin').style.height = '80px';
$('#xcanwin').style.display = '';
sv("k_showDebug", true);
}
$('.checkbutton', this).classList.toggle('checked');
Expand Down Expand Up @@ -415,9 +415,9 @@
const setUserOptions = function() {
if (gv("k_showDebug", false) === true) {
$('#nmenuid_sd .checkbutton').classList.add('checked');
$('#xcanwin').style.height = '80px';
$('#xcanwin').style.display = '';
} else {
$('#xcanwin').style.height = '0px';
$('#xcanwin').style.display = 'none';
}

if (gv("k_theme", "light") === "light") {
Expand Down

0 comments on commit 2deb384

Please sign in to comment.