Skip to main content
drupalreleases
Release: Drupal 11.4.9 — Update released for Drupal core (11.4.9)! Release: Better Exposed Filters 7.2.0 — Minor update available for module better_exposed_filters (7.2.0). Release: Bootstrap 8.x-3.43 — Minor update available for theme bootstrap (8.x-3.43). Release: Svg Image 3.2.5 — Minor update available for module svg_image (3.2.5). Release: Book 3.0.8 — Minor update available for module book (3.0.8). Release: Tagify 2.0.5 — Minor update available for module tagify (2.0.5). Release: Editoria11y Accessibility Checker 3.0.11 — Minor update available for module editoria11y (3.0.11). Release: Events Log Track 5.0.1 — Minor update available for module events_log_track (5.0.1). Module Revived: @font-your-face 4.3.0 — Module fontyourface updated after 7 months of inactivity (4.3.0). Security Coverage: Open Y Branch Selector — Module openy_branch_selector now has official Drupal security advisory coverage.

Text field with Youtube without cookies

2 sites No security coverage Drupal 10–11
View on drupal.org

This module automatically updates YouTube embed links in text fields to use YouTube's privacy-focused nocookie domain. This helps prevent YouTube cookies from being set until a user interacts with the video.

Automatically replaces standard YouTube embed URLs with the privacy-enhanced youtube-nocookie.com domain in supported Drupal text fields when content is saved.

Features

Text field YouTube without cookies automatically changes standard YouTube embed URLs to YouTube's privacy-enhanced domain:

https://www.youtube.com/embed/

is replaced with:

https://www.youtube-nocookie.com/embed/

The module processes supported text fields when an entity is saved. It supports:

  • string_long fields.
  • text fields.
  • text_long fields.
  • text_with_summary fields, including both the main value and the summary.

The following entity types are supported:

  • Content nodes.
  • Paragraphs.
  • Taxonomy terms.

Only the YouTube domain is changed. The video ID, query parameters, and remaining embed markup are preserved.

This module is useful for websites that embed YouTube videos and want to use YouTube's privacy-enhanced domain. It helps prevent YouTube cookies from being set before a visitor interacts with an embedded video.

Post-Installation

After installation, URL replacement is enabled by default. The module adds a configuration page at:

Administration > Configuration > Content > Text field YouTube without cookies

/admin/config/content/text-field-youtube-nocookies

Use this page to enable or disable the replacement functionality.

No new content type, text format, field type, or media type is added. The module works automatically when supported entities are saved.

Existing content is not updated automatically after installation. Existing embed URLs are replaced the next time the corresponding entity is saved.

The module only matches the exact pattern:

src="https://www.youtube.com/embed/

Entities saved through command-line operations, such as Drush commands, cron, or migrations, are not processed.

Additional Requirements

This module requires:

  • Drupal 10 or Drupal 11.

No contributed modules, external libraries, or third-party services are required.

No additional modules or libraries are required.

The module can be used alongside Drupal core's text field and content authoring functionality.

Supporting this Module

There are currently no external funding links for this project. Contributions, testing, documentation improvements, and issue reports are welcome through the Drupal.org project issue queue.

Community Documentation

No additional community documentation or demonstration site is currently available.

For configuration and usage details, see the documentation included with the module.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Aug 2026
Latest release
3 weeks ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.3 Stable 10–11 Sep 18, 2026
1.0.2 Stable 10–11 Sep 18, 2026
1.0.1 Stable 10–11 Sep 18, 2026
1.0.0 Stable 10–11 Aug 25, 2026