From b0ab654e80286084e6360944915ea693ff28d119 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:59:32 -0500 Subject: [PATCH] enable `supportsAlternateIcons` --- Sources/uYouPlus.xm | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index b68825a..1b6e8c5 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -52,7 +52,14 @@ static int contrastMode() { } %end -// Workaround: uYou 3.0.3 Adblock fix. +// Enable Alternate Icons +%hook UIApplication +- (BOOL)supportsAlternateIcons { + return YES; +} +%end + +// Workaround: uYou 3.0.3 Adblock fix - @PoomSmart %hook YTAdsInnerTubeContextDecorator - (void)decorateContext:(id)context { if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeYouTubeAds"]) {} @@ -313,7 +320,7 @@ BOOL isAd(YTIElementRenderer *self) { - (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; } %end -// YTNoTracking - @arichornlover - https://github.com/arichornlover/YTNoTracking/ +// YTNoTracking - @arichornlover - https://github.com/arichornlover/YTNoTracking/ - OUTDATED %hook UIApplication - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { NSString *originalURLString = [url absoluteString]; @@ -689,7 +696,7 @@ BOOL isAd(YTIElementRenderer *self) { } %end -// Hide Fullscreen Button - @arichornlover - YouQuality is Incompatibile with this Option +// Hide Fullscreen Button - @arichornlover - PoomSmart's YouQuality tweak breaks when enabling this %hook YTInlinePlayerBarContainerView - (void)layoutSubviews { %orig; @@ -956,7 +963,7 @@ BOOL isAd(YTIElementRenderer *self) { } %end -// Hide the (Connect / Thanks / Save / Report) Buttons under the Video Player - 17.x.x and up - @PoomSmart (inspired by @arichornlover) DEPRECATED METHOD ⚠️ +// Hide the (Connect / Thanks / Save / Report) Buttons under the Video Player - 17.x.x and up - @arichornlover (inspired by @PoomSmart's version) DEPRECATED METHOD ⚠️ %hook _ASDisplayView - (void)layoutSubviews { %orig; @@ -1235,7 +1242,7 @@ static BOOL findCell(ASNodeController *nodeController, NSArray *ide %end %end -// Hide Indicators - @Dayanch96 & @arichorn +// Hide Indicators - @Dayanch96 & @arichornlover %group gHideSubscriptionsNotificationBadge %hook YTPivotBarIndicatorView - (void)didMoveToWindow {