Skip to content

Commit dd7b008

Browse files
committed
Renamed appIs<High|Low> to more accurate appIsToo<High|Low> ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
1 parent 50afe5d commit dd7b008

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chatgpt/googlegpt/googlegpt.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
150150
// @author KudoAI
151151
// @namespace https://kudoai.com
152-
// @version 2025.4.21.1
152+
// @version 2025.4.21.2
153153
// @license MIT
154154
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
155155
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
@@ -1839,10 +1839,10 @@
18391839
appDiv: appDiv.getBoundingClientRect(), toggleBtn: toggleElem.getBoundingClientRect(),
18401840
hoverMenu: hoverMenus[menuType].div.getBoundingClientRect()
18411841
}
1842-
const appIsHigh = rects.toggleBtn.top < ( rects.hoverMenu.height +15 ),
1843-
appIsLow = rects.hoverMenu.bottom > ( innerHeight -15 )
1842+
const appIsTooHigh = rects.toggleBtn.top < ( rects.hoverMenu.height +15 ),
1843+
appIsTooLow = rects.hoverMenu.bottom > ( innerHeight -15 )
18441844
hoverMenus[menuType].div.style.top = `${ rects.toggleBtn.top - rects.appDiv.top +(
1845-
menuType == 'pin' && appIsHigh || menuType == 'api' && !appIsLow
1845+
menuType == 'pin' && appIsTooHigh || menuType == 'api' && !appIsTooLow
18461846
? /* point down */ 29 : /* point up */ - rects.hoverMenu.height -13 )}px`
18471847
hoverMenus[menuType].rightPos = hoverMenus[menuType].rightPos
18481848
|| rects.appDiv.right - event.clientX - hoverMenus[menuType].div.offsetWidth/2

0 commit comments

Comments
 (0)