Skip to content

fix: open YouTube embeds externally - #338

Merged
PathGao merged 2 commits into
sftwrdotdev:masterfrom
PathGao:fix/youtube-external-fallback
Aug 2, 2026
Merged

fix: open YouTube embeds externally#338
PathGao merged 2 commits into
sftwrdotdev:masterfrom
PathGao:fix/youtube-external-fallback

Conversation

@PathGao

@PathGao PathGao commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • replace in-app YouTube iframes with clickable thumbnail cards
  • open the original YouTube URL through Markpad's existing system-browser link handler
  • prevent linked thumbnails from opening the preview image-zoom overlay
  • remove the no-longer-needed YouTube frame CSP permission

Fixes #230

Validation

  • npm ci
  • npm run check
  • npm test
  • cargo test

Local bundle validation

  • macOS Bundle: com.alecdotdev.markpad.pr230, version 2.6.14-pr230.local.1
  • Built with npm run tauri build in an isolated clone.
  • Opened a Markdown document containing a YouTube URL; the thumbnail card rendered, and clicking it opened the original video in the system browser without opening Markpad's image-zoom overlay.

@PathGao
PathGao force-pushed the fix/youtube-external-fallback branch from 20294aa to 2757f79 Compare August 2, 2026 04:41
@PathGao
PathGao merged commit cfa980e into sftwrdotdev:master Aug 2, 2026
5 checks passed
@PathGao
PathGao deleted the fix/youtube-external-fallback branch August 2, 2026 05:20
Comment thread docs/superpowers/plans/2026-08-02-youtube-external-fallback.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YouTube embeds broken by YouTube's late-2025 Referer enforcement (error 153) — at least on macOS/Linux (tauri:// origin)

2 participants