diff --git a/Header.h b/Header.h index 49a4131..9032631 100644 --- a/Header.h +++ b/Header.h @@ -33,6 +33,10 @@ @interface boolSettingsVC : UIViewController @end +@interface PlayerManager : NSObject +- (float)progress; +@end + // iOS16 fix @interface OBPrivacyLinkButton : UIButton - (instancetype)initWithCaption:(NSString *)caption diff --git a/uYouPlus.xm b/uYouPlus.xm index 1fd6383..53b19f0 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -346,6 +346,15 @@ BOOL hidePaidPromotionCard() { } %end +// Prevent uYou player bar from showing when not playing downloaded media +%hook PlayerManager +- (void)pause { + if ([@([self progress]) isEqualToNumber:[NSDecimalNumber notANumber]]) + return; + %orig; +} +%end + // Hide YouTube Shorts banner in Home page? - @MiRO92 - YTNoShorts: https://github.com/MiRO92/YTNoShorts %hook YTAsyncCollectionView - (id)cellForItemAtIndexPath:(NSIndexPath *)indexPath {