feat: add youtube floating quick-download action

This commit is contained in:
tongki078
2026-02-26 12:17:36 +09:00
parent e8b7432594
commit 59226ed6fd
10 changed files with 172 additions and 11 deletions

View File

@@ -419,6 +419,13 @@ browser.runtime.onMessage.addListener((message: any, sender: any) => {
})
}
if (message?.type === 'page:enqueue-ytdlp-url') {
const url = String(message?.url || '').trim()
const referer = String(message?.referer || url).trim()
if (!url) return Promise.resolve({ ok: false, error: 'url is empty' })
return transferUrlToGdown(url, referer || url, 'yt-dlp')
}
return undefined
})