mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 23:22:09 +00:00
Improved some Options
This commit is contained in:
parent
f2f63981e7
commit
6763948779
1 changed files with 24 additions and 5 deletions
29
uYouPlus.xm
29
uYouPlus.xm
|
|
@ -859,6 +859,12 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
}
|
||||
return %orig;
|
||||
}
|
||||
- (void)setFeaturedChannelWatermarkImageView:(id)imageView {
|
||||
if (IsEnabled(@"hideChannelWatermark_enabled")) {
|
||||
return;
|
||||
}
|
||||
%orig(imageView);
|
||||
}
|
||||
%end
|
||||
// Hide Channel Watermark (for Backwards Compatibility)
|
||||
%hook YTAnnotationsViewController
|
||||
|
|
@ -1009,10 +1015,9 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
}
|
||||
}
|
||||
|
||||
// Hide Community Posts
|
||||
// Hide Community Posts
|
||||
if (IsEnabled(@"hideCommunityPosts_enabled")) {
|
||||
if ([idToRemove rangeOfString:@"id.ui.backstage.post"].location != NSNotFound ||
|
||||
[idToRemove rangeOfString:@"id.ui.backstage.original_post"].location != NSNotFound) {
|
||||
if ([idToRemove rangeOfString:@"id.ui.backstage.post"].location != NSNotFound) {
|
||||
[self removeShortsAndFeaturesAdsAtIndexPath:indexPath];
|
||||
}
|
||||
}
|
||||
|
|
@ -1274,7 +1279,7 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTFullScreenEngagementOverlayViewController
|
||||
%hook YTFullScreenEngagementOverlayController
|
||||
- (void)setRelatedVideosVisible:(BOOL)visible {
|
||||
}
|
||||
- (BOOL)relatedVideosPeekingEnabled {
|
||||
|
|
@ -1332,13 +1337,27 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
%end
|
||||
%end
|
||||
|
||||
// Hide Subscriptions Notification Badge - @arichorn
|
||||
// Hide Indicators - @Dayanch96 & @arichorn
|
||||
%group gHideSubscriptionsNotificationBadge
|
||||
%hook YTPivotBarIndicatorView
|
||||
- (void)didMoveToWindow {
|
||||
[self setHidden:YES];
|
||||
%orig();
|
||||
}
|
||||
- (void)setFillColor:(id)arg1 {
|
||||
if (kRemoveIndicators) {
|
||||
%orig([UIColor clearColor]);
|
||||
} else {
|
||||
%orig(arg1);
|
||||
}
|
||||
}
|
||||
- (void)setBorderColor:(id)arg1 {
|
||||
if (kRemoveIndicators) {
|
||||
%orig([UIColor clearColor]);
|
||||
} else {
|
||||
%orig(arg1);
|
||||
}
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue