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.1 (latest)
Activity
New: be the first to try it

No permission changes between 0.1.0 and 0.1.1.

SKILL.md

1 added, 1 removed

@@ line 1 → 1
11---
22name: privacy-friendly-youtube-embed
3Removed: description: Embed YouTube videos in a web app without loading anything from Google until the visitor asks. A click-to-play placeholder with a local poster, the youtube-nocookie.com player after the click or after consent, CSP entries only when embeds exist, an accessible play button, 16:9 sizing with no layout shift, and a test that proves no YouTube request happens first. Use when adding a YouTube video to a page, when asked to "embed this video", or when a privacy audit flags YouTube iframes or thumbnails.
3Added: description: "Embed YouTube videos in a web app without loading anything from Google until the visitor asks: a click-to-play placeholder with a local poster, the youtube-nocookie.com player after the click or after consent, CSP entries only when embeds exist, an accessible play button, 16:9 sizing with no layout shift, and a Playwright test that proves no YouTube request happens first. Reads consent from your existing consent layer. Engineering guidance, not legal advice. Use when adding a YouTube video to a page, when asked to \"embed this video\", for a GDPR-friendly or lazy-loaded YouTube embed, or when a privacy audit flags YouTube iframes, cookies, or thumbnails."
44---
55
66# Privacy-friendly YouTube embed

kit.json

18 added, 5 removed

@@ line 1 → 1
11{
22 "name": "privacy-friendly-youtube-embed",
33 "owner": "slashclone",
4Removed: "version": "0.1.0",
4Added: "version": "0.1.1",
55 "type": "skill",
6Removed: "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.",
6Added: "title": "Embed YouTube videos without tracking cookies",
7Added: "description": "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.",
78 "category": "devops",
89 "license": "MIT",
9Removed: "compat": ["claude-code"],
10Added: "compat": [
11Added: "claude-code"
12Added: ],
1013 "permissions": {
11Removed: "network": ["www.youtube-nocookie.com", "www.youtube.com", "i.ytimg.com"],
14Added: "network": [
15Added: "www.youtube-nocookie.com",
16Added: "www.youtube.com",
17Added: "i.ytimg.com"
18Added: ],
1219 "files": {
13Removed: "read": ["./templates/**", "./src/**", "./app/**", "./components/**", "./public/**"],
20Added: "read": [
21Added: "./templates/**",
22Added: "./src/**",
23Added: "./app/**",
24Added: "./components/**",
25Added: "./public/**"
26Added: ],
1427 "write": [
1528 "./src/components/**",
1629 "./components/**",

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