mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-10-30 12:33:57 -04:00
Merge pull request #250 from bhackel/fix-fullscreen-to-the-right
Fix fullscreen to the right
This commit is contained in:
@@ -249,6 +249,7 @@ BOOL isTabSelected = NO;
|
|||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Disable fullscreen engagement overlay - @bhackel
|
||||||
%group gDisableEngagementOverlay
|
%group gDisableEngagementOverlay
|
||||||
%hook YTFullscreenEngagementOverlayController
|
%hook YTFullscreenEngagementOverlayController
|
||||||
- (void)setEnabled:(BOOL)enabled {
|
- (void)setEnabled:(BOOL)enabled {
|
||||||
@@ -439,30 +440,14 @@ BOOL isTabSelected = NO;
|
|||||||
}
|
}
|
||||||
%end
|
%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.
|
// NOTE: Please turn off the “Portrait Fullscreen” Option in YTLite while the option "Fullscreen to the Right" is enabled below.
|
||||||
%group gFullscreenToTheRight
|
%group gFullscreenToTheRight
|
||||||
%hook YTWatchViewController
|
%hook YTWatchViewController
|
||||||
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
|
- (UIInterfaceOrientationMask)allowedFullScreenOrientations {
|
||||||
if ([self isFullscreen] && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
|
UIInterfaceOrientationMask orientations = UIInterfaceOrientationMaskLandscapeRight;
|
||||||
return UIInterfaceOrientationLandscapeRight;
|
return orientations;
|
||||||
}
|
|
||||||
return %orig;
|
|
||||||
}
|
}
|
||||||
- (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
|
%end
|
||||||
|
|
||||||
// YTTapToSeek - https://github.com/bhackel/YTTapToSeek
|
// YTTapToSeek - https://github.com/bhackel/YTTapToSeek
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Desativar Iluminação cinematográfica (Tela cheia)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Desativar Iluminação cinematográfica (Tela cheia)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Desativa a iluminação ao redor do player de vídeo";
|
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Desativa a iluminação ao redor do player de vídeo";
|
||||||
|
|
||||||
|
"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" = "Gesto de Busca em qualquer lugar";
|
"SEEK_ANYWHERE" = "Gesto de Busca em qualquer lugar";
|
||||||
"SEEK_ANYWHERE_DESC" = "Segure e arraste o player de vídeo para buscar. Você deve desativar o YTLite - Segurar para velocidade (Hold for speed)";
|
"SEEK_ANYWHERE_DESC" = "Segure e arraste o player de vídeo para buscar. Você deve desativar o YTLite - Segurar para velocidade (Hold for speed)";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -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" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,9 @@
|
|||||||
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
"DISABLE_AMBIENT_FULLSCREEN" = "Disable Ambient Mode (Fullscreen)";
|
||||||
"DISABLE_AMBIENT_FULLSCREEN_DESC" = "Disable lighting surrouding video player";
|
"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" = "Seek Anywhere Gesture";
|
||||||
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
"SEEK_ANYWHERE_DESC" = "Hold and drag on the video player to seek. You must disable YTLite - Hold to speed";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user