From a1566375332c18114722ba529b9c007eef70b17d Mon Sep 17 00:00:00 2001 From: Butterfly Smith <57894187+Gray-Ice@users.noreply.github.com> Date: Fri, 22 Nov 2024 18:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86PC=E7=AB=AF=E5=9B=A0?= =?UTF-8?q?=E4=B8=BA=E5=85=83=E7=B4=A0=E5=8F=98=E6=9B=B4=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E4=B8=8D=E5=87=BA=E8=8F=9C=E5=8D=95=E6=A0=8F?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KeepChatGPT.user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/KeepChatGPT.user.js b/KeepChatGPT.user.js index 7efcbe5..58923fe 100644 --- a/KeepChatGPT.user.js +++ b/KeepChatGPT.user.js @@ -703,7 +703,7 @@ kcg_html.innerHTML = kcg_html._symbol1_innerHTML; kcg_html.classList.add('kcg-pc'); kcg_html.classList.remove('kcg-mb'); - symbol_prt = fp("nav.flex", $(symbol1_selector), 3); + symbol_prt = $("#sidebar_pinned").parentNode } else if ($(symbol2_selector)) { kcg_html.innerHTML = kcg_html._symbol2_innerHTML; kcg_html.classList.remove('kcg-pc'); @@ -729,7 +729,7 @@ ndivkcg.innerHTML = ndivkcg._symbol1_innerHTML; ndivkcg.classList.add('kcg-pc'); ndivkcg.classList.remove('kcg-mb'); - symbol_prt = fp("nav.flex", $(symbol1_selector), 3); + symbol_prt = $("section[data-testid='screen-sidebar']").parentNode } else if ($(symbol2_selector)) { ndivkcg.innerHTML = ndivkcg._symbol2_innerHTML; ndivkcg.classList.remove('kcg-pc'); @@ -1446,3 +1446,4 @@ nav.flex .transition-all { let nInterval2 = setInterval(nInterval2Fun, 1000 * interval2Time); })(); +