diff --git a/amazongpt/greasemonkey/amazongpt.user.js b/amazongpt/greasemonkey/amazongpt.user.js index a7ba9f507e..2ebbc8bebd 100644 --- a/amazongpt/greasemonkey/amazongpt.user.js +++ b/amazongpt/greasemonkey/amazongpt.user.js @@ -3,7 +3,7 @@ // @description Adds the magic of AI to Amazon shopping // @author KudoAI // @namespace https://kudoai.com -// @version 2024.8.22 +// @version 2024.8.22.1 // @license MIT // @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7 // @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7 @@ -1510,7 +1510,7 @@ const slider = document.createElement('div') ; slider.id = 'font-size-slider-track' slider.className = 'fade-in-less' ; slider.style.display = 'none' const sliderThumb = document.createElement('div') ; sliderThumb.id = 'font-size-slider-thumb' - sliderThumb.title = Math.floor(config.fontSize *10) /10 + 'px' + sliderThumb.title = Math.floor(config.fontSize *10) /10 + 'px' // font size tooltip const sliderTip = document.createElement('div') ; sliderTip.id = 'font-size-slider-tip' // Assemble/insert elems @@ -1587,8 +1587,7 @@ // Position slider tip const btnSpan = document.getElementById('font-size-btn'), sliderTip = document.getElementById('font-size-slider-tip'), - elems = { appDiv, btnSpan, sliderTip }, - rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key].getBoundingClientRect()) + rects = { appDiv: appDiv.getBoundingClientRect(), btnSpan: btnSpan.getBoundingClientRect() } sliderTip.style.right = `${ rects.appDiv.right - ( rects.btnSpan.left + rects.btnSpan.right )/2 -35 }px` // Show slider, hide reply tip diff --git a/bravegpt/greasemonkey/bravegpt.user.js b/bravegpt/greasemonkey/bravegpt.user.js index 2284ad0a31..2067ac1876 100644 --- a/bravegpt/greasemonkey/bravegpt.user.js +++ b/bravegpt/greasemonkey/bravegpt.user.js @@ -148,7 +148,7 @@ // @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!) // @author KudoAI // @namespace https://kudoai.com -// @version 2024.8.22 +// @version 2024.8.22.1 // @license MIT // @icon https://media.bravegpt.com/images/icons/bravegpt/icon48.png?0a9e287 // @icon64 https://media.bravegpt.com/images/icons/bravegpt/icon64.png?0a9e287 @@ -1987,7 +1987,7 @@ setTimeout(async () => { const slider = document.createElement('div') ; slider.id = 'font-size-slider-track' slider.className = 'fade-in-less' ; slider.style.display = 'none' const sliderThumb = document.createElement('div') ; sliderThumb.id = 'font-size-slider-thumb' - sliderThumb.title = Math.floor(config.fontSize *10) /10 + 'px' + sliderThumb.title = Math.floor(config.fontSize *10) /10 + 'px' // font size tooltip const sliderTip = document.createElement('div') ; sliderTip.id = 'font-size-slider-tip' // Assemble/insert elems @@ -2064,8 +2064,7 @@ setTimeout(async () => { // Position slider tip const btnSpan = document.getElementById('font-size-btn'), sliderTip = document.getElementById('font-size-slider-tip'), - elems = { appDiv, btnSpan, sliderTip }, - rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key].getBoundingClientRect()) + rects = { appDiv: appDiv.getBoundingClientRect(), btnSpan: btnSpan.getBoundingClientRect() } sliderTip.style.right = `${ rects.appDiv.right - ( rects.btnSpan.left + rects.btnSpan.right )/2 -32 }px` // Show slider, hide reply tip diff --git a/duckduckgpt/greasemonkey/duckduckgpt.user.js b/duckduckgpt/greasemonkey/duckduckgpt.user.js index f3b34e900e..c3daa9c060 100644 --- a/duckduckgpt/greasemonkey/duckduckgpt.user.js +++ b/duckduckgpt/greasemonkey/duckduckgpt.user.js @@ -148,7 +148,7 @@ // @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!) // @author KudoAI // @namespace https://kudoai.com -// @version 2024.8.22 +// @version 2024.8.22.1 // @license MIT // @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302 // @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302 @@ -1890,7 +1890,7 @@ const slider = document.createElement('div') ; slider.id = 'font-size-slider-track' slider.className = 'fade-in-less' ; slider.style.display = 'none' const sliderThumb = document.createElement('div') ; sliderThumb.id = 'font-size-slider-thumb' - sliderThumb.title = Math.floor(config.fontSize *10) /10 + 'px' + sliderThumb.title = Math.floor(config.fontSize *10) /10 + 'px' // font size tooltip const sliderTip = document.createElement('div') ; sliderTip.id = 'font-size-slider-tip' // Assemble/insert elems @@ -1967,8 +1967,7 @@ // Position slider tip const btnSpan = document.getElementById('font-size-btn'), sliderTip = document.getElementById('font-size-slider-tip'), - elems = { appDiv, btnSpan, sliderTip }, - rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key].getBoundingClientRect()) + rects = { appDiv: appDiv.getBoundingClientRect(), btnSpan: btnSpan.getBoundingClientRect() } sliderTip.style.right = `${ rects.appDiv.right - ( rects.btnSpan.left + rects.btnSpan.right )/2 -35.5 }px` // Show slider, hide reply tip diff --git a/googlegpt/greasemonkey/googlegpt.user.js b/googlegpt/greasemonkey/googlegpt.user.js index ab64e2c985..7286414e4f 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.22 +// @version 2024.8.22.1 // @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 @@ -2205,7 +2205,7 @@ const slider = document.createElement('div') ; slider.id = 'font-size-slider-track' slider.className = 'fade-in-less' ; slider.style.display = 'none' const sliderThumb = document.createElement('div') ; sliderThumb.id = 'font-size-slider-thumb' - sliderThumb.title = Math.floor(config.fontSize *10) /10 + 'px' + sliderThumb.title = Math.floor(config.fontSize *10) /10 + 'px' // font size tooltip const sliderTip = document.createElement('div') ; sliderTip.id = 'font-size-slider-tip' // Assemble/insert elems @@ -2282,8 +2282,7 @@ // Position slider tip const btnSpan = document.getElementById('font-size-btn'), sliderTip = document.getElementById('font-size-slider-tip'), - elems = { appDiv, btnSpan, sliderTip }, - rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key].getBoundingClientRect()) + rects = { appDiv: appDiv.getBoundingClientRect(), btnSpan: btnSpan.getBoundingClientRect() } sliderTip.style.right = `${ rects.appDiv.right - ( rects.btnSpan.left + rects.btnSpan.right )/2 -35.5 }px` // Show slider, hide reply tip