mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
This release also includes all of the new changes from qnblackcat/uYouPlus. and the App Version Spoofer has finally been updated again!
22 lines
800 B
Text
22 lines
800 B
Text
#import <YouTubeHeader/YTPlayerOverlayProvider.h>
|
|
#import <YouTubeHeader/YTPlayerOverlay.h>
|
|
#import "uYouPlus.h"
|
|
|
|
// YTNoPaidPromo: https://github.com/PoomSmart/YTNoPaidPromo
|
|
%hook YTMainAppVideoPlayerOverlayViewController
|
|
- (void)setPaidContentWithPlayerData:(id)data {
|
|
if (IS_ENABLED(kHidePaidPromotionCard)) {}
|
|
else { return %orig; }
|
|
}
|
|
- (void)playerOverlayProvider:(YTPlayerOverlayProvider *)provider didInsertPlayerOverlay:(YTPlayerOverlay *)overlay {
|
|
if ([[overlay overlayIdentifier] isEqualToString:@"player_overlay_paid_content"] && IS_ENABLED(kHidePaidPromotionCard)) return;
|
|
%orig;
|
|
}
|
|
%end
|
|
|
|
%hook YTInlineMutedPlaybackPlayerOverlayViewController
|
|
- (void)setPaidContentWithPlayerData:(id)data {
|
|
if (IS_ENABLED(kHidePaidPromotionCard)) {}
|
|
else { return %orig; }
|
|
}
|
|
%end
|