mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 02:32:10 +00:00
Fix uYou player bar bug
This commit is contained in:
parent
11ddcd421d
commit
3aa7c57d82
2 changed files with 13 additions and 0 deletions
4
Header.h
4
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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue