Linux 软件免费装
Banner图

Privacy Lite Video Embeds for YouTube

开发者 arnopeck
更新时间 2026年7月11日 23:54
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

performance privacy youtube embeds lazy load

下载

1.0.1 1.0.0

详情介绍:

Privacy Lite Video Embeds for YouTube replaces YouTube embeds with lightweight local placeholders. Fast video embeds for YouTube. Nothing loads until click. Trademark note: this is a third-party plugin and is not affiliated with, endorsed by, or sponsored by YouTube or Google. Before the visitor clicks, the frontend loads only local resources from the site: The YouTube player is created only after user interaction and uses the privacy-enhanced youtube-nocookie.com embed domain. This can help reduce external frontend requests, improve perceived loading performance, and provide a more privacy-friendly default behavior for embedded YouTube videos. Important: this plugin is a technical privacy/performance aid. It does not constitute legal advice and does not by itself guarantee compliance with privacy laws. Site owners remain responsible for their own privacy notices, consent setup, and legal assessment. Main features

安装:

  1. Upload the plugin folder to /wp-content/plugins/privacy-lite-video-embeds/, or install it from the WordPress plugin screen when available.
  2. Activate Privacy Lite Video Embeds for YouTube.
  3. Go to Settings > Privacy Lite Video.
  4. Choose the replacement scope and placeholder options.
  5. For existing sites, run Scan content and generate missing thumbnails from the settings page.

屏幕截图:

  • Frontend YouTube placeholder before click, using a local thumbnail and customizable play button.

升级注意事项:

1.0.1 Performance fix: thumbnail downloads no longer block visitor page loads; scanner now covers all content across repeated runs. 1.0.0 Initial plugin implementation.

常见问题:

Does this plugin call external services?

Yes, because the plugin works with YouTube embeds. The plugin may contact img.youtube.com server-side to download and cache video thumbnails locally in the WordPress uploads directory. This happens from the website server, not from the visitor browser. The visitor browser loads the YouTube player only after the visitor clicks the local placeholder. After click, the iframe is created using the privacy-enhanced youtube-nocookie.com embed domain. No account or API key is required.

Does the visitor browser load YouTube before click?

The plugin is designed so that the frontend placeholder uses local HTML, CSS, JavaScript and locally cached thumbnails. The YouTube iframe is created only after the visitor clicks the placeholder.

Are YouTube thumbnails loaded from YouTube in the frontend?

No. The plugin downloads thumbnails server-side and saves them locally in the WordPress uploads directory. The frontend uses the local copy.

Does the server contact YouTube?

Yes, the server may contact img.youtube.com to download and cache thumbnails locally. This is done server-side, not in the visitor browser.

Does this guarantee GDPR compliance?

No plugin can guarantee legal compliance on its own. This plugin avoids loading YouTube resources in the visitor browser before interaction, but site owners should still review their privacy notice, cookie/consent setup, and legal obligations.

Is this an official YouTube or Google plugin?

No. This is a third-party plugin and is not affiliated with YouTube or Google.

Which YouTube embed domain is used after click?

After click, the plugin creates an iframe using https://www.youtube-nocookie.com/embed/VIDEO_ID.

Can I replace only Gutenberg YouTube blocks?

Yes. The settings page includes a replacement scope option:

  • Only Gutenberg YouTube embed blocks
  • All YouTube videos found in content

Can I change the play button color?

Yes. The settings page includes a color picker for the overlay play button shown before the video is loaded.

What happens if a thumbnail cannot be downloaded?

The plugin displays a local CSS fallback placeholder. Failed thumbnail download attempts are cached for 12 hours to avoid repeated server-side requests.

When are thumbnails downloaded?

In the background, never during a visitor page load. When a placeholder is rendered without a cached thumbnail, it shows the CSS fallback and the thumbnail is fetched server-side via a same-site AJAX request, then appears automatically. Thumbnails are also pre-generated when a post is saved and by the admin scan tool.

How do I test the privacy behavior?

Open a page containing a YouTube embed and use your browser DevTools.

  1. Open DevTools > Network.
  2. Reload the page.
  3. Before clicking the placeholder, check that this plugin has not initiated third-party video player requests from the visitor browser.
  4. Click the placeholder.
  5. Confirm that the iframe is created and loads from youtube-nocookie.com.

更新日志:

1.0.1 1.0.0