diff --git a/Source/Settings.xm b/Source/Settings.xm index e4f4ace3c..be1dee28c 100644 --- a/Source/Settings.xm +++ b/Source/Settings.xm @@ -107,6 +107,16 @@ extern NSBundle *YTLitePlusBundle(); } settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"NO_SUGGESTED_VIDEO") + titleDescription:LOC(@"NO_SUGGESTED_VIDEO_DESC") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"noSuggestedVideo_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"noSuggestedVideo_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_HEATWAVES") titleDescription:LOC(@"HIDE_HEATWAVES_DESC") accessibilityIdentifier:nil diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 1dd6116b0..a57abca5d 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -351,6 +351,16 @@ static BOOL IsEnabled(NSString *key) { } %end +// YTNoSuggestedVideo - https://github.com/bhackel/YTNoSuggestedVideo +%hook YTMainAppVideoPlayerOverlayViewController +- (bool)shouldShowAutonavEndscreen { + if (IsEnabled(@"noSuggestedVideo_enabled")) { + return false; + } + return %orig; +} +%end + // BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer %group Main %hook YTWatchMiniBarView diff --git a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings index b40f4d52d..9efb26ee2 100644 --- a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "إخفاء اللوحة اليمنى في وضع ملء الشاشة"; "HIDE_RIGHT_PANEL_DESC" = "مطلوب إعادة تشغيل التطبيق"; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "إخفاء موجات الحر"; "HIDE_HEATWAVES_DESC" = "يخفي موجات الحر في مشغل الفيديو. مطلوب إعادة تشغيل التطبيق."; diff --git a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings index e986c68c0..845d5c2da 100644 --- a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "Hide the right panel in fullscreen mode"; "HIDE_RIGHT_PANEL_DESC" = "App restart is required."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Hide Heatwaves"; "HIDE_HEATWAVES_DESC" = "Hides the Heatwaves in the video player. App restart is required."; diff --git a/lang/YTLitePlus.bundle/es.lproj/Localizable.strings b/lang/YTLitePlus.bundle/es.lproj/Localizable.strings index 2224e2032..d7186ab9c 100644 --- a/lang/YTLitePlus.bundle/es.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/es.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "Ocultar el panel derecho en modo pantalla completa"; "HIDE_RIGHT_PANEL_DESC" = "Es necesario reiniciar la aplicación."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Ocultar Heatwaves"; "HIDE_HEATWAVES_DESC" = "Oculta las Heatwaves en el reproductor de vídeo. Es necesario reiniciar la aplicación."; diff --git a/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings b/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings index aa453fb06..caa296457 100644 --- a/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "Masquer le panneau de droite en mode plein écran"; "HIDE_RIGHT_PANEL_DESC" = "Le redémarrage de l'application est requis."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Masquer les Heatwaves"; "HIDE_HEATWAVES_DESC" = "Masque les Heatwaves dans le lecteur vidéo. Le redémarrage de l'application est requis."; diff --git a/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings index 1c9be6587..53fe4248b 100644 --- a/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "フルスクリーンモードで右パネルを非表示"; "HIDE_RIGHT_PANEL_DESC" = "アプリの再起動が必要です。"; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "ヒートウェーブを非表示"; "HIDE_HEATWAVES_DESC" = "動画プレーヤーのヒートウェーブを非表示にします。アプリの再起動が必要です。"; diff --git a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings index e599975ca..510f2f802 100644 --- a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "Hide the right panel in fullscreen mode"; "HIDE_RIGHT_PANEL_DESC" = "App restart is required."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Hide Heatwaves"; "HIDE_HEATWAVES_DESC" = "Hides the Heatwaves in the video player. App restart is required."; diff --git a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings index c7bdca26e..f411340ab 100644 --- a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "Ascunde panoul lateral în modul ecran complet"; "HIDE_RIGHT_PANEL_DESC" = "Este necesară repornirea aplicației."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Ascunde Heatwaves"; "HIDE_HEATWAVES_DESC" = "Ascundere Heatwaves în player-ul video. Este necesară repornirea aplicației."; diff --git a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings index fe67450cd..d7d96d2d8 100644 --- a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "Hide the right panel in fullscreen mode"; "HIDE_RIGHT_PANEL_DESC" = "App restart is required."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Hide Heatwaves"; "HIDE_HEATWAVES_DESC" = "Hides the Heatwaves in the video player. App restart is required."; diff --git a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings index a8fb11809..1851af5c3 100644 --- a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings @@ -32,6 +32,9 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap "HIDE_RIGHT_PANEL" = "Hide the right panel in fullscreen mode"; "HIDE_RIGHT_PANEL_DESC" = "App restart is required."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Hide Heatwaves"; "HIDE_HEATWAVES_DESC" = "Hides the Heatwaves in the video player. App restart is required."; diff --git a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings index 3e6ce9c58..d271b06f0 100644 --- a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings @@ -17,6 +17,9 @@ "HIDE_RIGHT_PANEL" = "Hide the right panel in fullscreen mode"; "HIDE_RIGHT_PANEL_DESC" = "App restart is required."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Hide Heatwaves"; "HIDE_HEATWAVES_DESC" = "Hides the Heatwaves in the video player. App restart is required."; diff --git a/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings b/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings index 4aafa0e85..2b7166e86 100644 --- a/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings @@ -29,6 +29,9 @@ "DONT_EAT_MY_CONTENT" = "Ngăn Notch/Đảo trên nội dung video 2:1 (DontEatMyContent)"; "DONT_EAT_MY_CONTENT_DESC" = "Ngăn notch/Dynamic Island nghiền ngẫm nội dung video 2:1 trên YouTube. Khởi động lại ứng dụng là bắt buộc."; +"NO_SUGGESTED_VIDEO" = "Hide Suggested Video (YTNoSuggestedVideo)"; +"NO_SUGGESTED_VIDEO_DESC" = "Remove the suggested video popup when finishing a video"; + "HIDE_HEATWAVES" = "Ẩn sóng nhiệt"; "HIDE_HEATWAVES_DESC" = "Ẩn Sóng nhiệt trong trình phát video. Khởi động lại ứng dụng là bắt buộc.";