Skip to content

Use nocookie YouTube embeds with JS API params#92

Merged
BunsDev merged 1 commit into
mainfrom
okcode/fix-youtube-widget
Mar 29, 2026
Merged

Use nocookie YouTube embeds with JS API params#92
BunsDev merged 1 commit into
mainfrom
okcode/fix-youtube-widget

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Mar 29, 2026

Summary

  • Switched YouTube embeds to youtube-nocookie.com for both video and playlist playback.
  • Added embed query params for autoplay, JS API support, origin, and reduced related videos/branding.
  • Kept the existing URL parsing behavior unchanged; only embed URL construction changed.

Testing

  • Not run (PR content only).
  • Reviewed the diff to confirm both video and playlist embed URLs now use the nocookie domain and include the new params.

- Switch video and playlist embeds to `youtube-nocookie.com`
- Add `enablejsapi`, `origin`, and branding-related query params
- Preserve autoplay while improving embed privacy and consistency
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Mar 29, 2026 6:04am

@github-actions github-actions Bot added size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 29, 2026
@BunsDev BunsDev merged commit 78e26d9 into main Mar 29, 2026
8 of 9 checks passed
@BunsDev BunsDev deleted the okcode/fix-youtube-widget branch March 31, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant