|
3 | 3 | // @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o! |
4 | 4 | // @author KudoAI |
5 | 5 | // @namespace https://kudoai.com |
6 | | -// @version 2025.9.5.3 |
| 6 | +// @version 2025.9.5.4 |
7 | 7 | // @license MIT |
8 | 8 | // @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c |
9 | 9 | // @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c |
|
975 | 975 | ;['width', 'height'].forEach(attr => svg.setAttribute(attr, 15)) |
976 | 976 | }) |
977 | 977 | downloadBtn.append(downloadSVGs.download) |
978 | | - downloadBtn.onclick = event => { // download code, update icon + tooltip status |
| 978 | + downloadBtn.onclick = ({ currentTarget }) => { // download code, update icon + tooltip status |
979 | 979 | if (!downloadBtn.firstChild.matches('[id$=download-icon]')) return // since clicking on DL'd icon |
980 | 980 |
|
981 | 981 | // Update cursor/icon/tooltip |
982 | 982 | downloadBtn.style.cursor = 'default' // remove finger |
983 | 983 | downloadBtn.firstChild.replaceWith(downloadSVGs.downloaded.cloneNode(true)) // change to DL'd icon |
984 | | - tooltip.update(event.currentTarget) // to 'Code downloaded!' |
| 984 | + tooltip.update(currentTarget) // to 'Code downloaded!' |
985 | 985 | setTimeout(() => { // restore icon/cursor/tooltip after a bit |
986 | 986 | downloadBtn.firstChild.replaceWith(downloadSVGs.download.cloneNode(true)) |
987 | 987 | downloadBtn.style.cursor = 'pointer' |
|
1224 | 1224 | isDragging = true ; startX = event.clientX ; startLeft = sliderThumb.offsetLeft |
1225 | 1225 | document.body.append(fontSizeSlider.cursorOverlay) |
1226 | 1226 | }) |
1227 | | - document.addEventListener(inputEvents.move, event => { |
1228 | | - if (isDragging) moveThumb(startLeft + event.clientX - startX) }) |
| 1227 | + document.addEventListener(inputEvents.move, ({ clientX }) => { |
| 1228 | + if (isDragging) moveThumb(startLeft + clientX - startX) }) |
1229 | 1229 | document.addEventListener(inputEvents.up, () => { |
1230 | 1230 | isDragging = false |
1231 | 1231 | if (fontSizeSlider.cursorOverlay?.isConnected) fontSizeSlider.cursorOverlay.remove() |
|
0 commit comments