mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
support YT v17.25.1
This commit is contained in:
parent
b2b14305eb
commit
9145301cc8
1 changed files with 13 additions and 22 deletions
35
uYouPlus.xm
35
uYouPlus.xm
|
|
@ -232,11 +232,15 @@ BOOL ytMiniPlayer() {
|
|||
- (void)showSurveyWithRenderer:(id)arg1 surveyParentResponder:(id)arg2 {}
|
||||
%end
|
||||
|
||||
// Enable Shorts scroll bar - level3tjg - https://reddit.com/r/jailbreak/comments/v29yvk/_/iasl1l0/
|
||||
// Enable Shorts scroll bar - @level3tjg - https://reddit.com/r/jailbreak/comments/v29yvk/_/iasl1l0/
|
||||
%hook YTReelPlayerViewControllerSub
|
||||
- (BOOL)shouldEnablePlayerBar { return YES; }
|
||||
%end
|
||||
|
||||
%hook YTReelPlayerViewController
|
||||
- (BOOL)shouldEnablePlayerBar { return YES; }
|
||||
%end
|
||||
|
||||
// Hide the download playlist button of uYou cuz it's broken ?!
|
||||
// %hook YTPlaylistHeaderViewController
|
||||
// - (void)viewDidLoad {
|
||||
|
|
@ -253,7 +257,7 @@ BOOL ytMiniPlayer() {
|
|||
}
|
||||
%end
|
||||
|
||||
// Hide YouTube Shorts banner in Home page? - MiRO92 - YTNoShorts: https://github.com/MiRO92/YTNoShorts
|
||||
// Hide YouTube Shorts banner in Home page? - @MiRO92 - YTNoShorts: https://github.com/MiRO92/YTNoShorts
|
||||
%hook YTAsyncCollectionView
|
||||
- (id)cellForItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
UICollectionViewCell *cell = %orig;
|
||||
|
|
@ -344,6 +348,12 @@ BOOL ytMiniPlayer() {
|
|||
return %orig;
|
||||
}
|
||||
- (UIColor *)brandBackgroundSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [[UIColor blackColor] colorWithAlphaComponent:0.88];
|
||||
}
|
||||
return %orig;
|
||||
}
|
||||
- (UIColor *)raisedBackground {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor blackColor];
|
||||
}
|
||||
|
|
@ -373,15 +383,6 @@ BOOL ytMiniPlayer() {
|
|||
}
|
||||
%end
|
||||
|
||||
// %hook YTInnerTubeCollectionViewController
|
||||
// - (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||
// if (pageStyle == 1) {
|
||||
// return [UIColor blackColor];
|
||||
// }
|
||||
// return %orig;
|
||||
// }
|
||||
// %end
|
||||
|
||||
// Explore
|
||||
%hook ASScrollView
|
||||
- (void)didMoveToWindow {
|
||||
|
|
@ -421,16 +422,6 @@ BOOL ytMiniPlayer() {
|
|||
}
|
||||
%end
|
||||
|
||||
// YT Miniplayer
|
||||
%hook YTWatchMiniBarView
|
||||
- (void)setBackgroundColor:(UIColor *)color {
|
||||
if (isDarkMode()) {
|
||||
return %orig([[UIColor blackColor] colorWithAlphaComponent:0.88]);
|
||||
}
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// Search View
|
||||
%hook YTSearchBarView
|
||||
- (void)setBackgroundColor:(UIColor *)color {
|
||||
|
|
@ -522,7 +513,7 @@ BOOL ytMiniPlayer() {
|
|||
}
|
||||
%end
|
||||
|
||||
// Nasty stuff :/
|
||||
// Others
|
||||
%hook _ASDisplayView
|
||||
- (void)didMoveToWindow {
|
||||
%orig;
|
||||
|
|
|
|||
Loading…
Reference in a new issue