Skip to content

Commit 753d690

Browse files
committed
Hide autoplay mini preview
1 parent c9875ec commit 753d690

15 files changed

Lines changed: 50 additions & 0 deletions

File tree

Source/Settings.xm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ static const NSInteger YTLiteSection = 789;
230230
BASIC_SWITCH(LOC(@"DISABLE_TOGGLE_TIME_REMAINING"), LOC(@"DISABLE_TOGGLE_TIME_REMAINING_DESC"), @"disableRemainingTime_enabled"),
231231
BASIC_SWITCH(LOC(@"DISABLE_ENGAGEMENT_OVERLAY"), LOC(@"DISABLE_ENGAGEMENT_OVERLAY_DESC"), @"disableEngagementOverlay_enabled"),
232232
BASIC_SWITCH(LOC(@"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER"), LOC(@"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC"), @"hidePreviewCommentSection_enabled"),
233+
BASIC_SWITCH(LOC(@"HIDE_AUTOPLAY_MINI_PREVIEW"), LOC(@"HIDE_AUTOPLAY_MINI_PREVIEW_DESC"), @"hideAutoplayMiniPreview_enabled"),
233234
];
234235
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
235236
[settingsViewController pushViewController:picker];

YTLitePlus.xm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,16 @@ BOOL isTabSelected = NO;
561561
}
562562
%end
563563

564+
// Hide Autoplay Mini Preview - @bhackel
565+
%hook YTAutonavPreviewView
566+
- (void)didMoveToWindow {
567+
%orig;
568+
if (IsEnabled(@"hideAutoplayMiniPreview_enabled")) {
569+
self.hidden = YES;
570+
}
571+
}
572+
%end
573+
564574
/*
565575
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
566576
%group Main

lang/YTLitePlus.bundle/ar.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER" = "Hide Comment previews under player";
6262
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC" = "Hide comment spoiler in comments button";
6363

64+
"HIDE_AUTOPLAY_MINI_PREVIEW" = "Hide autoplay mini preview";
65+
"HIDE_AUTOPLAY_MINI_PREVIEW_DESC" = "Hide the small suggested video box near the title in fullscreen";
66+
6467
// App settings overlay options
6568
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
6669

lang/YTLitePlus.bundle/de.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER" = "Hide Comment previews under player";
6262
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC" = "Hide comment spoiler in comments button";
6363

64+
"HIDE_AUTOPLAY_MINI_PREVIEW" = "Hide autoplay mini preview";
65+
"HIDE_AUTOPLAY_MINI_PREVIEW_DESC" = "Hide the small suggested video box near the title in fullscreen";
66+
6467
// App settings overlay options
6568
"APP_SETTINGS_OVERLAY_OPTIONS" = "Overlay-Optionen für App-Einstellungen";
6669

lang/YTLitePlus.bundle/en.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER" = "Hide Comment previews under player";
6262
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC" = "Hide comment spoiler in comments button";
6363

64+
"HIDE_AUTOPLAY_MINI_PREVIEW" = "Hide autoplay mini preview";
65+
"HIDE_AUTOPLAY_MINI_PREVIEW_DESC" = "Hide the small suggested video box near the title in fullscreen";
66+
6467
// App settings overlay options
6568
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
6669

lang/YTLitePlus.bundle/es.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER" = "Hide Comment previews under player";
6262
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC" = "Hide comment spoiler in comments button";
6363

64+
"HIDE_AUTOPLAY_MINI_PREVIEW" = "Hide autoplay mini preview";
65+
"HIDE_AUTOPLAY_MINI_PREVIEW_DESC" = "Hide the small suggested video box near the title in fullscreen";
66+
6467
// App settings overlay options
6568
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opciones de superposición de los ajustes de la aplicación";
6669

lang/YTLitePlus.bundle/fr.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER" = "Hide Comment previews under player";
6262
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC" = "Hide comment spoiler in comments button";
6363

64+
"HIDE_AUTOPLAY_MINI_PREVIEW" = "Hide autoplay mini preview";
65+
"HIDE_AUTOPLAY_MINI_PREVIEW_DESC" = "Hide the small suggested video box near the title in fullscreen";
66+
6467
// App settings overlay options
6568
"APP_SETTINGS_OVERLAY_OPTIONS" = "Paramètres des options d'overlay de l'application";
6669

lang/YTLitePlus.bundle/ja.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER" = "プレーヤー下のコメントプレビューを隠す";
6262
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC" = "プレーヤーの下にあるコメントのプレビューを非表示にします。";
6363

64+
"HIDE_AUTOPLAY_MINI_PREVIEW" = "Hide autoplay mini preview";
65+
"HIDE_AUTOPLAY_MINI_PREVIEW_DESC" = "Hide the small suggested video box near the title in fullscreen";
66+
6467
// App settings overlay options
6568
"APP_SETTINGS_OVERLAY_OPTIONS" = "アプリの設定オーバーレイの設定";
6669

lang/YTLitePlus.bundle/pt.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER" = "Hide Comment previews under player";
6262
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC" = "Hide comment spoiler in comments button";
6363

64+
"HIDE_AUTOPLAY_MINI_PREVIEW" = "Hide autoplay mini preview";
65+
"HIDE_AUTOPLAY_MINI_PREVIEW_DESC" = "Hide the small suggested video box near the title in fullscreen";
66+
6467
// App settings overlay options
6568
"APP_SETTINGS_OVERLAY_OPTIONS" = "Configurações do Aplicativo";
6669

lang/YTLitePlus.bundle/ro.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER" = "Hide Comment previews under player";
6262
"HIDE_COMMENT_PREVIEWS_UNDER_PLAYER_DESC" = "Hide comment spoiler in comments button";
6363

64+
"HIDE_AUTOPLAY_MINI_PREVIEW" = "Hide autoplay mini preview";
65+
"HIDE_AUTOPLAY_MINI_PREVIEW_DESC" = "Hide the small suggested video box near the title in fullscreen";
66+
6467
// App settings overlay options
6568
"APP_SETTINGS_OVERLAY_OPTIONS" = "Opțiuni Overlay Setări Aplicație";
6669

0 commit comments

Comments
 (0)