From f63d6d6867a3f28f1aa5fede9a3d23c941324802 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Wed, 15 Jan 2025 20:15:47 -0800 Subject: [PATCH] =?UTF-8?q?Removed=20no-longer=20used=20`menu-entry`=20IDs?= =?UTF-8?q?=20from=20toggle=20selectors=20=E2=86=9E=20[auto-sync=20from=20?= =?UTF-8?q?https://github.com/adamlui/ai-web-extensions/tree/main/googlegp?= =?UTF-8?q?t]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chatgpt/googlegpt/googlegpt.user.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chatgpt/googlegpt/googlegpt.user.js b/chatgpt/googlegpt/googlegpt.user.js index 06f78026d..af7517858 100644 --- a/chatgpt/googlegpt/googlegpt.user.js +++ b/chatgpt/googlegpt/googlegpt.user.js @@ -149,7 +149,7 @@ // @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!) // @author KudoAI // @namespace https://kudoai.com -// @version 2025.1.15.17 +// @version 2025.1.15.18 // @license MIT // @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2 // @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2 @@ -3139,7 +3139,7 @@ update.bylineVisibility() ; appDiv.removeEventListener('transitionend', onTransitionEnd) }}) if (modals.settings.get()) { // update visual state of Settings toggle - const anchorToggle = document.querySelector('[id*=anchor][id*=menu-entry] input') + const anchorToggle = document.querySelector('[id*=anchor] input') if (anchorToggle.checked != config.anchored) modals.settings.toggle.switch(anchorToggle) } menus.pin.topPos = menus.pin.rightPos = null @@ -3171,7 +3171,7 @@ ['prefix', 'suffix'].forEach(mode => config[`${mode}Enabled`] && toggle.manualGet(mode)) notify(`${settings.controls.autoGet.label} ${menu.state.words[+config.autoGet]}`) if (modals.settings.get()) { // update visual state of Settings toggle - const autoGetToggle = document.querySelector('[id*=autoGet][id*=menu-entry] input') + const autoGetToggle = document.querySelector('[id*=autoGet] input') if (autoGetToggle.checked != config.autoGet) modals.settings.toggle.switch(autoGetToggle) } }, @@ -3210,7 +3210,7 @@ if (config[modeKey] && config.autoGet) toggle.autoGet() // disable Auto-Get mode if enabled notify(`${settings.controls[modeKey].label} ${menu.state.words[+config[modeKey]]}`) if (modals.settings.get()) { // update visual state of Settings toggle - const modeToggle = document.querySelector(`[id*=${modeKey}][id*=menu-entry] input`) + const modeToggle = document.querySelector(`[id*=${modeKey}] input`) if (modeToggle.checked != config[modeKey]) modals.settings.toggle.switch(modeToggle) } }, @@ -3237,8 +3237,8 @@ notify(`${app.msgs.menuLabel_proxyAPImode} ${menu.state.words[+config.proxyAPIenabled]}`) menu.refresh() if (modals.settings.get()) { // update visual states of Settings toggles - const proxyToggle = document.querySelector('[id*=proxy][id*=menu-entry] input'), - streamingToggle = document.querySelector('[id*=streaming][id*=menu-entry] input') + const proxyToggle = document.querySelector('[id*=proxy] input'), + streamingToggle = document.querySelector('[id*=streaming] input') if (proxyToggle.checked != config.proxyAPIenabled) // Proxy state out-of-sync (from using toolbar menu) modals.settings.toggle.switch(proxyToggle) if (streamingToggle.checked && !config.proxyAPIenabled // Streaming checked but OpenAI mode @@ -3275,7 +3275,7 @@ update.answerPreMaxHeight() ; update.bylineVisibility() ; update.chatbarWidth() if (mode == 'wider') icons.widescreen.update() // toggle icons everywhere if (modals.settings.get()) { // update visual state of Settings toggle - const stickySidebarToggle = document.querySelector('[id*=sticky][id*=menu-entry] input') + const stickySidebarToggle = document.querySelector('[id*=sticky] input') if (stickySidebarToggle.checked != config.stickySidebar) modals.settings.toggle.switch(stickySidebarToggle) }