mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 02:32:10 +00:00
Resolve #238
Rip. I re-added the old ‘Hide Channel Watermark` functionality.
This commit is contained in:
parent
2a0ed287b5
commit
2b3e0869e8
1 changed files with 15 additions and 6 deletions
21
uYouPlus.xm
21
uYouPlus.xm
|
|
@ -872,6 +872,21 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
%end
|
||||
|
||||
// Hide Channel Watermark
|
||||
%hook YTMainAppVideoPlayerOverlayView
|
||||
- (BOOL)isWatermarkEnabled {
|
||||
if (IsEnabled(@"hideChannelWatermark_enabled")) {
|
||||
return NO;
|
||||
}
|
||||
return %orig;
|
||||
}
|
||||
- (void)setFeaturedChannelWatermarkImageView:(id)imageView {
|
||||
if (IsEnabled(@"hideChannelWatermark_enabled")) {
|
||||
return;
|
||||
}
|
||||
%orig(imageView);
|
||||
}
|
||||
%end
|
||||
|
||||
// Hide Channel Watermark (for Backwards Compatibility)
|
||||
%hook YTAnnotationsViewController
|
||||
- (void)loadFeaturedChannelWatermark {
|
||||
|
|
@ -1015,12 +1030,6 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Hide Channel Watermark - @iCrazeiOS
|
||||
if (IsEnabled(@"hideChannelWatermark_enabled")) {
|
||||
if ([description containsString:@"featured_channel_watermark_overlay.eml"]) {
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
|
|
|
|||
Loading…
Reference in a new issue