From bc755171aff7ee2f75b1abbf0622191aac0ccaee Mon Sep 17 00:00:00 2001 From: NopeCharon <115794254+NopeCharon@users.noreply.github.com> Date: Fri, 23 Oct 2026 13:30:19 +0530 Subject: [PATCH] [xExtension-YouTube] Add an option to disable embedding videos Some users enable the extension only for its other features, such as automatically using the channels' icons or converting channel and user URLs to feed URLs, and prefer to keep the original feed content instead of an embedded player. Add an "Embed videos in articles" checkbox to the configuration page, stored in the `yt_embed_videos` user attribute. When it is unchecked, the `entry_before_display` hook leaves YouTube and PeerTube entries untouched. The option defaults to enabled when the attribute is unset, so existing installations keep their current behaviour. Add translations for all supported languages and bump the extension version to 1.4.0. Fixes #517 --- xExtension-YouTube/README.md | 3 +++ xExtension-YouTube/configure.phtml | 7 +++++++ xExtension-YouTube/extension.php | 22 ++++++++++++++++++++++ xExtension-YouTube/i18n/de/ext.php | 1 + xExtension-YouTube/i18n/en/ext.php | 1 + xExtension-YouTube/i18n/fr/ext.php | 1 + xExtension-YouTube/i18n/pl/ext.php | 1 + xExtension-YouTube/i18n/tr/ext.php | 1 + xExtension-YouTube/metadata.json | 2 +- 9 files changed, 38 insertions(+), 1 deletion(-) diff --git a/xExtension-YouTube/README.md b/xExtension-YouTube/README.md index 8be79fc7..b8b8a026 100644 --- a/xExtension-YouTube/README.md +++ b/xExtension-YouTube/README.md @@ -23,6 +23,9 @@ With activated Youtube extension: ## Changelog +1.4.0: +- Added an option to disable embedding videos, e.g. to only use the channel icons and URL conversion + 1.3.1: - Refactored registerHook calls to use first class callable syntax diff --git a/xExtension-YouTube/configure.phtml b/xExtension-YouTube/configure.phtml index 5a4b15b8..247800e2 100644 --- a/xExtension-YouTube/configure.phtml +++ b/xExtension-YouTube/configure.phtml @@ -6,6 +6,13 @@ declare(strict_types=1);