From 1c1efa75d957a3f3cfe7d25d18a822a05f70909d Mon Sep 17 00:00:00 2001 From: Bryce Hackel <34104885+bhackel@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:59:25 -0700 Subject: [PATCH] Fix fullscreen to the right --- YTLitePlus.xm | 25 ++++--------------- .../ar.lproj/Localizable.strings | 3 +++ .../de.lproj/Localizable.strings | 3 +++ .../en.lproj/Localizable.strings | 3 +++ .../es.lproj/Localizable.strings | 3 +++ .../fr.lproj/Localizable.strings | 3 +++ .../ja.lproj/Localizable.strings | 3 +++ .../pt.lproj/Localizable.strings | 3 +++ .../ro.lproj/Localizable.strings | 3 +++ .../ru.lproj/Localizable.strings | 3 +++ .../template.lproj/Localizable.strings | 3 +++ .../tr.lproj/Localizable.strings | 3 +++ .../vi.lproj/Localizable.strings | 3 +++ .../zh_TW.lproj/Localizable.strings | 3 +++ 14 files changed, 44 insertions(+), 20 deletions(-) diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 8f2122e..ef1306e 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -249,6 +249,7 @@ BOOL isTabSelected = NO; %end %end +// Disable fullscreen engagement overlay - @bhackel %group gDisableEngagementOverlay %hook YTFullscreenEngagementOverlayController - (void)setEnabled:(BOOL)enabled { @@ -439,30 +440,14 @@ BOOL isTabSelected = NO; } %end -// Fullscreen to the Right (iPhone-exclusive) - @arichornlover +// Fullscreen to the Right - @arichornlover // NOTE: Please turn off the “Portrait Fullscreen” Option in YTLite while the option "Fullscreen to the Right" is enabled below. %group gFullscreenToTheRight %hook YTWatchViewController -- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { - if ([self isFullscreen] && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { - return UIInterfaceOrientationLandscapeRight; - } - return %orig; +- (UIInterfaceOrientationMask)allowedFullScreenOrientations { + UIInterfaceOrientationMask orientations = UIInterfaceOrientationMaskLandscapeRight; + return orientations; } -- (UIInterfaceOrientationMask)supportedInterfaceOrientations { - if ([self isFullscreen] && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { - return UIInterfaceOrientationMaskLandscape; - } - return %orig; -} -%new -- (void)forceRightFullscreenOrientation { - if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { - NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight]; - [[UIDevice currentDevice] setValue:value forKey:@"orientation"]; - } -} -%end %end // YTTapToSeek - https://github.com/bhackel/YTTapToSeek diff --git a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings index 68fc982..e95663d 100644 --- a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/de.lproj/Localizable.strings b/lang/YTLitePlus.bundle/de.lproj/Localizable.strings index 4cc7cd4..9ef72ae 100644 --- a/lang/YTLitePlus.bundle/de.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/de.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings index cb060de..0df1b9b 100644 --- a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/es.lproj/Localizable.strings b/lang/YTLitePlus.bundle/es.lproj/Localizable.strings index f963815..d65deca 100644 --- a/lang/YTLitePlus.bundle/es.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/es.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings b/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings index 2154453..f3e2823 100644 --- a/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings index 316f34e..ac1ad32 100644 --- a/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings index d13f11e..a97a27d 100644 --- a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings index 0876c44..018886c 100644 --- a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings index a22d2e0..0dad83e 100644 --- a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings index 2ff8f3c..77059e1 100644 --- a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings @@ -41,6 +41,9 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings index 9fda8c1..9f228fc 100644 --- a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings @@ -26,6 +26,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings b/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings index 9848534..a6cf581 100644 --- a/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings @@ -35,6 +35,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed"; diff --git a/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings b/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings index 87642fd..2772532 100644 --- a/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings @@ -27,6 +27,9 @@ "DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)"; "DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player"; +"FULLSCREEN_TO_THE_RIGHT" = "Fullscreen to the Right"; +"FULLSCREEN_TO_THE_RIGHT_DESC" = "Always enter fullscreen with home button on the right side."; + "SEEK_ANYWHERE" = "Seek Anywhere Gesture"; "SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";