
內容簡介
**總結:**
如果您關心性能、隱私和使用者體驗,這個外掛就是為您而設。
**問題與答案:**
1. 這個外掛主要針對哪些方面進行增強?
- 提升了預設的 YouTube 區塊,包括所有現有的區塊,將它們的行為更改為只在訪客選擇播放視頻之前加載視頻縮圖。
2. 這個外掛有哪些特點?
- 加快載入 YouTube 視頻(使用 lite-youtube 自定義元素)
- 從 nocookie.youtube.com 加載視頻以增強隱私
- 可以在沒有 JavaScript 的情況下運作(顯示指向 YouTube 視頻的連結)
- 沒有外掛鎖定!自動改進所有 YouTube 嵌入內容。關閉它後,行為會恢復到 WordPress 的默認值。
3. 作者考慮建立 PRO 版本,該版本可能包含哪些功能?
- 設置自定義開始和結束時間的選項
- 視頻的自定義縮圖圖像
- 視頻的自定義比例
- 支援 YouTube 短片
- 控制是否從 nocookie.youtube.com 加載視頻
- 調整縮圖的圖像質量
- 支援播放列表,而不僅僅是單個視頻
- 完全支援所有 YouTube 查詢參數
- 支持經典編輯器 / 短碼
- 在可能的情況下支持 Vimeo 和其他嵌入來源的相似功能
4. 這個外掛的開發人員使用了什麼軟體?
- 這個外掛使用了 MIT 授權的 lite-youtube 自定義元素。感謝 Paul Irish 和 Justin Ribiero 他們在該項目上的工作。
外掛標籤
開發者團隊
② 後台搜尋「Enhanced Embed Block for YouTube & Vimeo」→ 直接安裝(推薦)
原文外掛簡介
If you care about performance, privacy, and user experience, this block is for you.
This plugin enhances the default YouTube and Vimeo blocks—including any existing blocks—and changes their behavior to only load the video thumbnail until a visitor chooses to play the video.
Features
Load YouTube videos faster (uses the lite-youtube custom-element)
Load Vimeo videos faster (uses the lite-viemo custom-element)
Loads YouTube videos from nocookie.youtube.com for enhanced privacy
Works without JavaScript (shows link to video instead in a player-like design)
No plugin lock-in! Automatically improves the core Embed block. Turn the plugin off and the behavior goes back to the WordPress default.
Want more features?
I’m considering building a PRO version with the potential following features:
Options to set a custom start and end time
Custom thumbnail images for videos
Custom aspect ratios for videos
Support for YouTube shorts
Control whether to load video from nocookie.youtube.com or not
Adjust the image quality of the thumbnail
Support for playlists, not just single videos
Full support for all YouTube query parameters (https://developers.google.com/youtube/player_parameters)
Classic Editor / shortcode support
If enough people express interest, I’ll build it! Let me know if you’re interested!
Contribute on Github
Enhanced Embed Block is on Github for pull requests and bug reports.
Software
This plugin uses the lite-youtube custom-element under the MIT license. Thank you to Paul Irish and Justin Ribiero for their work on that project.
This plugin uses the lite-vimeo custom-element under the MIT license. Thank you to Chris Shaw for their work on that project.
