From 3441366319984aa0b1828e5652a55c62f6f3e415 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Wed, 4 Dec 2024 06:11:44 -0800 Subject: [PATCH] =?UTF-8?q?Condensed=20`rightBtnSelector`=20init=20?= =?UTF-8?q?=E2=86=9E=20[auto-sync=20from=20https://github.com/adamlui/ai-w?= =?UTF-8?q?eb-extensions]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome/extension/content.js | 4 ++-- firefox/extension/content.js | 4 ++-- greasemonkey/chatgpt-widescreen-mode.user.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/chrome/extension/content.js b/chrome/extension/content.js index ae2f86f4..9dd1cbdc 100644 --- a/chrome/extension/content.js +++ b/chrome/extension/content.js @@ -173,8 +173,8 @@ if (env.tallChatbar) btns[btnType].style.bottom = '8.85px' else btns[btnType].style.top = /chatgpt|openai/.test(env.site) ? '-3.25px' : 0 if (/chatgpt|perplexity/.test(env.site)) { // assign classes + tweak styles - const rightBtnSelector = `${sites[env.site].selectors.btns.send}, ${ - sites[env.site].selectors.btns.voice}` + const btnSelectors = sites[env.site].selectors.btns + const rightBtnSelector = `${btnSelectors.send}, ${btnSelectors.voice}` const rightBtn = await new Promise(resolve => { const rightBtn = document.querySelector(rightBtnSelector) if (rightBtn) resolve(rightBtn) diff --git a/firefox/extension/content.js b/firefox/extension/content.js index 053b46e2..b88b4b16 100644 --- a/firefox/extension/content.js +++ b/firefox/extension/content.js @@ -173,8 +173,8 @@ if (env.tallChatbar) btns[btnType].style.bottom = '8.85px' else btns[btnType].style.top = /chatgpt|openai/.test(env.site) ? '-3.25px' : 0 if (/chatgpt|perplexity/.test(env.site)) { // assign classes + tweak styles - const rightBtnSelector = `${sites[env.site].selectors.btns.send}, ${ - sites[env.site].selectors.btns.voice}` + const btnSelectors = sites[env.site].selectors.btns + const rightBtnSelector = `${btnSelectors.send}, ${btnSelectors.voice}` const rightBtn = await new Promise(resolve => { const rightBtn = document.querySelector(rightBtnSelector) if (rightBtn) resolve(rightBtn) diff --git a/greasemonkey/chatgpt-widescreen-mode.user.js b/greasemonkey/chatgpt-widescreen-mode.user.js index 927e3b7e..e00c4211 100644 --- a/greasemonkey/chatgpt-widescreen-mode.user.js +++ b/greasemonkey/chatgpt-widescreen-mode.user.js @@ -222,7 +222,7 @@ // @description:zu Yengeza Isikrini Esibanzi + Izindlela Zesikrini Esigcwele ku-chatgpt.com + perplexity.ai + poe.com ukuze uthole ukubuka okuthuthukisiwe + okuncishisiwe ukuskrola // @author Adam Lui // @namespace https://github.com/adamlui -// @version 2024.12.4.2 +// @version 2024.12.4.3 // @license MIT // @compatible chrome // @compatible firefox @@ -600,8 +600,8 @@ if (env.tallChatbar) btns[btnType].style.bottom = '8.85px' else btns[btnType].style.top = /chatgpt|openai/.test(env.site) ? '-3.25px' : 0 if (/chatgpt|openai|perplexity/.test(env.site)) { // assign classes + tweak styles - const rightBtnSelector = `${sites[env.site].selectors.btns.send}, ${ - sites[env.site].selectors.btns.voice}` + const btnSelectors = sites[env.site].selectors.btns + const rightBtnSelector = `${btnSelectors.send}, ${btnSelectors.voice}` const rightBtn = await new Promise(resolve => { const rightBtn = document.querySelector(rightBtnSelector) if (rightBtn) resolve(rightBtn)