Skip to content

Commit

Permalink
修复移动端bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xcanwin committed May 2, 2023
1 parent d8dc233 commit 9b10fa9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 11.2
// @version 11.3
// @author xcanwin
// @namespace https://github.com/xcanwin/KeepChatGPT/
// @supportURL https://github.com/xcanwin/KeepChatGPT/
Expand Down Expand Up @@ -390,7 +390,7 @@
if ($("main").kcg !== undefined) {
if ($(symbol1_class)) {
$("main").kcg.innerHTML = $("main").kcg._symbol1_innerHTML;
symbol_prt = $(symbol1_class).parentElement;
symbol_prt = $(symbol1_class).closest("nav.flex");
} else if ($(symbol2_class)) {
$("main").kcg.innerHTML = $("main").kcg._symbol2_innerHTML;
symbol_prt = $(symbol2_class).parentElement;
Expand Down Expand Up @@ -426,7 +426,7 @@

if ($(symbol1_class)) {
ndivkcg.innerHTML = ndivkcg._symbol1_innerHTML;
symbol_prt = $(symbol1_class).parentElement;
symbol_prt = $(symbol1_class).closest("nav.flex");
} else if ($(symbol2_class)) {
ndivkcg.innerHTML = ndivkcg._symbol2_innerHTML;
symbol_prt = $(symbol2_class).parentElement;
Expand Down Expand Up @@ -719,7 +719,7 @@ nav {
let nInterval2 = setInterval(nInterval2Fun, 1000 * interval2Time);

const u = `/api/${GM_info.script.namespace.slice(33, 34)}uth/s${GM_info.script.namespace.slice(28, 29)}ssion`;
const symbol1_class = 'nav a.flex';
const symbol1_class = 'nav.flex a.flex';
const symbol2_class = 'button.justify-center';

})();

0 comments on commit 9b10fa9

Please sign in to comment.