I'm drunk and it's 1 AM
This commit is contained in:
+24
-2
@@ -19,6 +19,7 @@
|
||||
#import "Tweaks/YouTubeHeader/YTPlayerOverlayProvider.h"
|
||||
#import "Tweaks/YouTubeHeader/YTReelWatchPlaybackOverlayView.h"
|
||||
#import "Tweaks/YouTubeHeader/YTReelPlayerBottomButton.h"
|
||||
#import "Tweaks/YouTubeHeader/YTReelPlayerViewController.h"
|
||||
|
||||
// Tweak's bundle for Localizations support - @PoomSmart - https://github.com/PoomSmart/YouPiP/commit/aea2473f64c75d73cab713e1e2d5d0a77675024f
|
||||
NSBundle *uYouPlusBundle() {
|
||||
@@ -26,7 +27,10 @@ NSBundle *uYouPlusBundle() {
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"];
|
||||
bundle = [NSBundle bundleWithPath:tweakBundlePath];
|
||||
if (tweakBundlePath)
|
||||
bundle = [NSBundle bundleWithPath:tweakBundlePath];
|
||||
else
|
||||
bundle = [NSBundle bundleWithPath:@"/Library/Application Support/uYouPlus.bundle"];
|
||||
});
|
||||
return bundle;
|
||||
}
|
||||
@@ -262,6 +266,8 @@ BOOL dontEatMyContent() {
|
||||
%hook YTColdConfig
|
||||
- (BOOL)respectDeviceCaptionSetting { return NO; }
|
||||
- (BOOL)isLandscapeEngagementPanelSwipeRightToDismissEnabled { return YES; }
|
||||
// Fix uYou's label glitching - qnblackcat/uYouPlus#552
|
||||
- (BOOL)mainAppCoreClientIosTransientVisualGlitchInPivotBarFix { return NO; }
|
||||
%end
|
||||
|
||||
// NOYTPremium - https://github.com/PoomSmart/NoYTPremium/
|
||||
@@ -291,15 +297,31 @@ BOOL dontEatMyContent() {
|
||||
- (void)showSurveyWithRenderer:(id)arg1 surveyParentResponder:(id)arg2 {}
|
||||
%end
|
||||
|
||||
// Enable Shorts scroll bar - @PoomSmart
|
||||
// YTShortsProgress - @PoomSmart - https://github.com/PoomSmart/YTShortsProgress
|
||||
%hook YTReelPlayerViewController
|
||||
- (BOOL)shouldEnablePlayerBar { return YES; }
|
||||
- (BOOL)shouldAlwaysEnablePlayerBar { return YES; }
|
||||
- (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; }
|
||||
%end
|
||||
|
||||
%hook YTReelPlayerViewControllerSub
|
||||
- (BOOL)shouldEnablePlayerBar { return YES; }
|
||||
- (BOOL)shouldAlwaysEnablePlayerBar { return YES; }
|
||||
- (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; }
|
||||
%end
|
||||
|
||||
%hook YTInlinePlayerBarContainerView
|
||||
- (void)setUserInteractionEnabled:(BOOL)enabled { %orig(YES); }
|
||||
%end
|
||||
|
||||
%hook YTColdConfig
|
||||
- (BOOL)iosEnableVideoPlayerScrubber { return YES; }
|
||||
%end
|
||||
|
||||
%hook YTHotConfig
|
||||
- (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; }
|
||||
%end
|
||||
|
||||
// Workaround for issue #54
|
||||
%hook YTMainAppVideoPlayerOverlayViewController
|
||||
- (void)updateRelatedVideos {
|
||||
|
||||
Reference in New Issue
Block a user