Skip to content

Commit 257dce8

Browse files
committed
Condensed Download Chat handler ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/bravegpt]
1 parent 18948e8 commit 257dce8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

chatgpt/bravegpt/bravegpt.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.9.5.13
151+
// @version 2025.9.5.14
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2
154154
// @icon64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2
@@ -2570,9 +2570,9 @@
25702570
xhr({
25712571
method: 'GET', url: shareURL,
25722572
onload: ({ responseText }) => {
2573-
const html = responseText, dlLink = dom.create.anchor(
2574-
URL.createObjectURL(new Blob([html], { type: 'text/html' })))
2575-
dlLink.download /* filename */ = html.match(/<title>([^<]+)<\/title>/i)[1] // page title
2573+
const dlLink = dom.create.anchor(
2574+
URL.createObjectURL(new Blob([responseText], { type: 'text/html' })))
2575+
dlLink.download /* filename */ = responseText.match(/<title>([^<]+)<\/title>/i)[1]
25762576
.replace(/\s*[|/]+\s*/g, ' ') // convert symbols to space for hyphen-casing
25772577
.replace(/\.{2,}/g, '') // strip ellipsis
25782578
.toLowerCase().trim().replace(/\s+/g, '-') // hyphen-case

0 commit comments

Comments
 (0)