|
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.10.12 |
| 6 | +// @version 2025.10.12.1 |
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 |
|
1354 | 1354 | mousedown(event) { // find modal, update styles, attach listeners, init XY offsets |
1355 | 1355 | if ( // prevent drag when... |
1356 | 1356 | event.button != 0 // non-left-click |
1357 | | - || event.target.closest('ul') // entry elem |
| 1357 | + || !/auto|default/.test(getComputedStyle(event.target).cursor) // cursor changed |
| 1358 | + || event.target.closest('ul') // entry elem |
1358 | 1359 | ) return |
1359 | | - if (!/auto|default/.test(getComputedStyle(event.target).cursor)) |
1360 | | - return // prevent drag on interactive elems |
1361 | 1360 | modals.draggingModal = event.currentTarget |
1362 | 1361 | event.preventDefault() // prevent sub-elems like icons being draggable |
1363 | 1362 | Object.assign(modals.draggingModal.style, { // update styles |
|
1842 | 1841 | .chatgpt-modal button:hover { |
1843 | 1842 | ${ env.ui.app.scheme == 'light' ? // reduce intensity of light scheme hover glow |
1844 | 1843 | '--btn-shadow: 2px 1px 43px #00cfff70 ;' : '' } |
1845 | | - color: inherit !important ; background-color: inherit !important /* remove color hacks */ |
| 1844 | + color: inherit ; background-color: inherit /* remove color hacks */ |
1846 | 1845 | } |
1847 | 1846 | ${ env.ui.app.scheme == 'dark' ? // darkmode chatgpt.alert() styles |
1848 | 1847 | `.chatgpt-modal > div, .chatgpt-modal button:not(.primary-modal-btn) { |
|
0 commit comments