From ce8d6f73dd1185455350fa84a59300ec2fe3d0d9 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Mon, 9 Dec 2024 19:30:48 -0800 Subject: [PATCH] =?UTF-8?q?Updated=20perplexity.ai=20tooltip=20`ctrAddend`?= =?UTF-8?q?=20+=20`spreadFactor`=20to=20maintain=20centeredness=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 8112d719..7153ee57 100644 --- a/chrome/extension/content.js +++ b/chrome/extension/content.js @@ -338,9 +338,9 @@ tooltip(btnType) { // text & position const visibleBtnTypes = btns.types.filter(type => !(type == 'fullWindow' && !sites[env.site].hasSidebar)) - const ctrAddend = ( env.site == 'perplexity' ? ( location.pathname == '/' ? 100 : 106 ) + const ctrAddend = ( env.site == 'perplexity' ? ( location.pathname == '/' ? 94 : 105 ) : env.site == 'poe' ? 45 : 13 ) +25, - spreadFactor = env.site == 'perplexity' ? 26.85 : env.site == 'poe' ? 34 : 30.55, + spreadFactor = env.site == 'perplexity' ? 26.5 : env.site == 'poe' ? 34 : 30.55, iniRoffset = spreadFactor * ( visibleBtnTypes.indexOf(btnType) +1 ) + ctrAddend + ( env.tallChatbar ? -3 : 4 ) tooltipDiv.innerText = chrome.i18n.getMessage('tooltip_' + btnType + ( diff --git a/firefox/extension/content.js b/firefox/extension/content.js index 485e4c46..18aec6c2 100644 --- a/firefox/extension/content.js +++ b/firefox/extension/content.js @@ -338,9 +338,9 @@ tooltip(btnType) { // text & position const visibleBtnTypes = btns.types.filter(type => !(type == 'fullWindow' && !sites[env.site].hasSidebar)) - const ctrAddend = ( env.site == 'perplexity' ? ( location.pathname == '/' ? 100 : 106 ) + const ctrAddend = ( env.site == 'perplexity' ? ( location.pathname == '/' ? 94 : 105 ) : env.site == 'poe' ? 45 : 13 ) +25, - spreadFactor = env.site == 'perplexity' ? 26.85 : env.site == 'poe' ? 34 : 30.55, + spreadFactor = env.site == 'perplexity' ? 26.5 : env.site == 'poe' ? 34 : 30.55, iniRoffset = spreadFactor * ( visibleBtnTypes.indexOf(btnType) +1 ) + ctrAddend + ( env.tallChatbar ? -3 : 4 ) tooltipDiv.innerText = chrome.i18n.getMessage('tooltip_' + btnType + ( diff --git a/greasemonkey/chatgpt-widescreen-mode.user.js b/greasemonkey/chatgpt-widescreen-mode.user.js index e2190a4e..fe84101e 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.9.3 +// @version 2024.12.9.4 // @license MIT // @icon https://media.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?9a393be // @icon64 https://media.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?9a393be @@ -770,9 +770,9 @@ tooltip(btnType) { // text & position const visibleBtnTypes = btns.types.filter(type => !(type == 'fullWindow' && !sites[env.site].hasSidebar)) - const ctrAddend = ( env.site == 'perplexity' ? ( location.pathname == '/' ? 100 : 106 ) + const ctrAddend = ( env.site == 'perplexity' ? ( location.pathname == '/' ? 94 : 105 ) : env.site == 'poe' ? 45 : 13 ) +25, - spreadFactor = env.site == 'perplexity' ? 26.85 : env.site == 'poe' ? 34 : 30.55, + spreadFactor = env.site == 'perplexity' ? 26.5 : env.site == 'poe' ? 34 : 30.55, iniRoffset = spreadFactor * ( visibleBtnTypes.indexOf(btnType) +1 ) + ctrAddend + ( env.tallChatbar ? -3 : 4 ) tooltipDiv.innerText = app.msgs['tooltip_' + btnType + (