From 60ee8de347efa935ec4a7254bcff1293ca3c4d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Lui=20=E5=88=98=E5=B1=95=E9=B9=8F?= Date: Sat, 17 Aug 2024 11:25:25 +0000 Subject: [PATCH] This is a `multi-line` commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - line `1` - line `2` ↞ [auto-sync from `KudoAI/googlegpt`] --- googlegpt/LICENSE.md | 2 +- googlegpt/greasemonkey/LICENSE.md | 2 +- googlegpt/greasemonkey/googlegpt.user.js | 11 +++++------ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/googlegpt/LICENSE.md b/googlegpt/LICENSE.md index 82e5a1b267..bf1b7f543b 100644 --- a/googlegpt/LICENSE.md +++ b/googlegpt/LICENSE.md @@ -12,7 +12,7 @@ # 🏛️ MIT License -**Copyright © 2023–2024 [KudoAI](https://github.com/KudoAI) & [contributors](.#-contributors).** +**Copyright © 2023–2024 [KudoAI](https://github.com/KudoAI) & [contributors](.#-contributors). .** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/googlegpt/greasemonkey/LICENSE.md b/googlegpt/greasemonkey/LICENSE.md index 82e5a1b267..bf1b7f543b 100644 --- a/googlegpt/greasemonkey/LICENSE.md +++ b/googlegpt/greasemonkey/LICENSE.md @@ -12,7 +12,7 @@ # 🏛️ MIT License -**Copyright © 2023–2024 [KudoAI](https://github.com/KudoAI) & [contributors](.#-contributors).** +**Copyright © 2023–2024 [KudoAI](https://github.com/KudoAI) & [contributors](.#-contributors). .** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/googlegpt/greasemonkey/googlegpt.user.js b/googlegpt/greasemonkey/googlegpt.user.js index 66f1323539..e8bb602616 100644 --- a/googlegpt/greasemonkey/googlegpt.user.js +++ b/googlegpt/greasemonkey/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 2024.8.17 +// @version 2024.8.16.9 // @license MIT // @icon https://media.googlegpt.io/images/icons/googlegpt/black/icon48.png?8652a6e // @icon64 https://media.googlegpt.io/images/icons/googlegpt/black/icon64.png?8652a6e @@ -2129,11 +2129,10 @@ .filter(type => { // exclude invisible ones const btn = appDiv.querySelector(`#${type}-btn`) return btn && getComputedStyle(btn).display != 'none' }) - const chatbarBtnTypes = ['send', 'shuffle'] const [ctrAddend, spreadFactor] = [8, 28], - iniRoffset = ctrAddend + spreadFactor * ( - cornerBtnTypes.includes(btnType) ? cornerBtnTypes.indexOf(btnType) +1 - : chatbarBtnTypes.indexOf(btnType) +1.35 ) + iniRoffset = spreadFactor * ( btnType == 'send' ? 1.35 + : btnType == 'shuffle' ? 2.25 + : cornerBtnTypes.indexOf(btnType) +1 ) + ctrAddend // Update text tooltipDiv.innerText = ( btnType == 'chevron' ? ( config.minimized ? `${ msgs.tooltip_restore || 'Restore' }` @@ -2150,7 +2149,7 @@ : btnType == 'shuffle' ? msgs.tooltip_feelingLucky || 'I\'m Feeling Lucky' : '' ) // Update position - tooltipDiv.style.top = `${ cornerBtnTypes.includes(btnType) ? -13 + tooltipDiv.style.top = `${ !/send|shuffle/.test(btnType) ? -13 : tooltipDiv.eventYpos - appDiv.getBoundingClientRect().top - 36 }px` tooltipDiv.style.right = `${ iniRoffset - tooltipDiv.getBoundingClientRect().width / 2 }px` },