Skip to content

Commit

Permalink
↞ [auto-sync from KudoAI/googlegpt]
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui authored and kudo-sync-bot committed Aug 17, 2024
1 parent 0739572 commit 310ba73
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion googlegpt/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion googlegpt/greasemonkey/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
11 changes: 5 additions & 6 deletions googlegpt/greasemonkey/googlegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' }`
Expand All @@ -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`
},
Expand Down

0 comments on commit 310ba73

Please sign in to comment.