Skip to content
SlashClone

Embed YouTube videos without tracking cookies

@slashclone/privacy-friendly-youtube-embed

Embed YouTube videos on your site without loading anything from Google until the visitor presses Play or allows videos. A click-to-play placeholder with a local poster swaps in the youtube-nocookie.com player, with a keyboard-friendly button, no layout shift, CSP entries, and a Playwright test that proves no YouTube request happens first. React and HTML templates. Not legal advice.

SkillDevOpsv0.1.0
Activity
New: be the first to try it
  1. 1{
  2. 2 "name": "privacy-friendly-youtube-embed",
  3. 3 "owner": "slashclone",
  4. 4 "version": "0.1.0",
  5. 5 "type": "skill",
  6. 6 "description": "Embed YouTube videos that load nothing from Google until the visitor presses Play or allows embedded videos. A click-to-play placeholder with a local poster, the youtube-nocookie.com player, CSP entries only when embeds exist, a real keyboard-friendly button, 16:9 sizing with no layout shift, and a Playwright test that proves no YouTube request happens first. React and plain HTML templates. Reads consent from your consent layer.",
  7. 7 "category": "devops",
  8. 8 "license": "MIT",
  9. 9 "compat": ["claude-code"],
  10. 10 "permissions": {
  11. 11 "network": ["www.youtube-nocookie.com", "www.youtube.com", "i.ytimg.com"],
  12. 12 "files": {
  13. 13 "read": ["./templates/**", "./src/**", "./app/**", "./components/**", "./public/**"],
  14. 14 "write": [
  15. 15 "./src/components/**",
  16. 16 "./components/**",
  17. 17 "./public/posters/**",
  18. 18 "./public/js/**",
  19. 19 "./e2e/**",
  20. 20 "./tests/**"
  21. 21 ]
  22. 22 }
  23. 23 }

Cookies that keep you signed in and remember these choices are always on. Everything else is off until you turn it on.