Skip to content

Commit

Permalink
Add YTNoSuggestedVideo
Browse files Browse the repository at this point in the history
  • Loading branch information
bhackel committed Jan 10, 2024
1 parent 3b9d979 commit 6f90495
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/Settings.xm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions YTLitePlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/ar.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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" = "يخفي موجات الحر في مشغل الفيديو. مطلوب إعادة تشغيل التطبيق.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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" = "動画プレーヤーのヒートウェーブを非表示にします。アプリの再起動が必要です。";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/pt.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/ro.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/template.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/tr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
3 changes: 3 additions & 0 deletions lang/YTLitePlus.bundle/vi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down

0 comments on commit 6f90495

Please sign in to comment.