Skip to content

Commit f734f4d

Browse files
committed
Condensed Download Chat handler ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent 11003c0 commit f734f4d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.9.5.11
6+
// @version 2025.9.5.12
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -1862,9 +1862,9 @@
18621862
xhr({
18631863
method: 'GET', url: shareURL,
18641864
onload: ({ responseText }) => {
1865-
const html = responseText, dlLink = dom.create.anchor(
1866-
URL.createObjectURL(new Blob([html], { type: 'text/html' })))
1867-
dlLink.download /* filename */ = html.match(/<title>([^<]+)<\/title>/i)[1] // page title
1865+
const dlLink = dom.create.anchor(
1866+
URL.createObjectURL(new Blob([responseText], { type: 'text/html' })))
1867+
dlLink.download /* filename */ = responseText.match(/<title>([^<]+)<\/title>/i)[1]
18681868
.replace(/\s*[|/]+\s*/g, ' ') // convert symbols to space for hyphen-casing
18691869
.replace(/\.{2,}/g, '') // strip ellipsis
18701870
.toLowerCase().trim().replace(/\s+/g, '-') // hyphen-case

0 commit comments

Comments
 (0)