Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

School districts require YouTube Player for Education, which uses youtube-nocookie.com to provide a sanitized viewing experience without commercial/social elements and enables district-level content restrictions.

Changes

Updated YouTube embed URLs across three integration points:

  • docfiles/docs.js: Semantic UI embed configuration for documentation pages
  • pxtrunner/runner.ts: Semantic UI embed configuration for runner environment
  • pxtlib/docsrender.ts: Direct iframe generation in hydrateYouTubeEmbeds()

All references changed from youtube.com/embed to youtube-nocookie.com/embed. The rel=0 parameter is retained to suppress related videos.

- const rawUrl = `https://www.youtube.com/embed/${videoId}`;
+ const rawUrl = `https://www.youtube-nocookie.com/embed/${videoId}`;

This affects all YouTube content in MakeCode: documentation, tutorials, and any markdown-embedded videos.

Original prompt

This section details on the original issue you should resolve

<issue_title>Move MakeCode content to YouTube Player for Education</issue_title>
<issue_description>Many school districts find YouTube useful for learning, but it can also distract students. To address this, Google created a special embedded video player called YouTube Player for Education.

Unlike the standard YouTube Player, the YouTube Player for Education provides a "sanitized" viewing experience by stripping away the platform's commercial and social elements. It also allows districts to restrict students to viewing only videos shared with them by their Teachers via LMSs and EdTech tools like Canvas, Schoology, Code.org, Edpuzzle, and Kahoot.

A quick way to tell if a video uses the YouTube Player for Education is that the embedded content is pulled from both youtubeeducation.com and youtube-nocookie.com.

Right now, all YouTube videos on Microsoft MakeCode seem to use the standard YouTube player. It would help our
district and others if MakeCode switched to the YouTube Player for Education for its embedded videos.

Here you can find the Google EDU Partner site with documentation for partners on the player and how it works.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Move MakeCode content to YouTube Player for Education Switch YouTube embeds to youtube-nocookie.com for education compliance Jan 21, 2026
Copilot AI requested a review from abchatra January 21, 2026 22:48
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.

Move MakeCode content to YouTube Player for Education

2 participants