We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
chatgpt.sidebar.isOn()
1 parent ac1c2b9 commit 7bab5f5Copy full SHA for 7bab5f5
chatgpt.js
@@ -1804,7 +1804,7 @@ const chatgpt = { // eslint-disable-line no-redeclare
1804
isOff() { return !this.isOn(); },
1805
isOn() {
1806
const sidebar = (() => {
1807
- return chatgpt.sidebar.exists() ? document.querySelector('body script + div > div') : null; })();
+ return chatgpt.sidebar.exists() ? document.querySelector('[class*="sidebar"]') : null; })();
1808
if (!sidebar) { console.error('Sidebar element not found!'); return false; }
1809
else return chatgpt.browser.isMobile() ?
1810
document.documentElement.style.overflow == 'hidden'
0 commit comments