Skip to content

chore: use youtube-nocookie embeds and drop Twitter widget script - #422

Merged
AbhishekDoshi26 merged 1 commit into
mainfrom
privacy-friendly-embeds
Oct 14, 2026
Merged

AbhishekDoshi26 merged 1 commit into
mainfrom
privacy-friendly-embeds

Conversation

@eseidel

@eseidel eseidel commented Oct 13, 2026

Copy link
Copy Markdown
Contributor
  • Blog YouTube embeds now use youtube-nocookie.com (3 posts). Updates the matching rich-text.css selector so they keep their 16:9 sizing.
  • Removes the Twitter widgets.js script from 2 posts. The embedded tweets render as plain blockquotes with a link to the original.

npm run build passes.

Switches blog YouTube embeds to youtube-nocookie.com and removes the Twitter widgets.js script. Embedded tweets now render as plain blockquotes with links.
@github-actions

Copy link
Copy Markdown
Contributor

🐦 Preview of f6d0c99: https://shorebird-website--pr-422-qdy34eus.web.app (expires in 7 days)

@AbhishekDoshi26 AbhishekDoshi26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the diff. Looks good:

  • All 3 youtube.com/embed iframes on main are switched; no other YouTube embeds remain, so the narrowed rich-text.css selector doesn't leave anything without 16:9 sizing. The advanced-permissions iframe sits inside a <div>, so it relies on the attribute selector, and that still matches.
  • Dropping the ?si= share-tracking params is a nice extra.
  • Both widgets.js tags are gone and nothing else loads Twitter scripts. The tweets fall back to .prose.rich-text blockquote styling and keep their links to the originals.
  • No CSP/frame-src config needs updating.

No changes needed.

@AbhishekDoshi26 AbhishekDoshi26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. No changes needed (see review above).

@AbhishekDoshi26
AbhishekDoshi26 merged commit af13c08 into main Oct 14, 2026
3 checks passed
@AbhishekDoshi26
AbhishekDoshi26 deleted the privacy-friendly-embeds branch October 14, 2026 12:19
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.

2 participants