Skips content warning before playing *some videos - @PoomSmart

This commit is contained in:
qnblackcat 2022-08-14 02:02:23 +07:00
parent c78e5b9fd9
commit 329fb1681a
2 changed files with 9 additions and 0 deletions

View file

@ -9,6 +9,10 @@
@end
// uYouPlus
@interface YTPlayabilityResolutionUserActionUIController : NSObject // Skips content warning before playing *some videos - @PoomSmart
- (void)confirmAlertDidPressConfirm;
@end
@interface YTMainAppControlsOverlayView : UIView
@end

View file

@ -80,6 +80,11 @@ BOOL hidePaidPromotionCard() {
- (BOOL)canReorder { return YES; }
%end
// Skips content warning before playing *some videos - @PoomSmart
%hook YTPlayabilityResolutionUserActionUIController
- (void)showConfirmAlert { [self confirmAlertDidPressConfirm]; }
%end
// YTMiniPlayerEnabler: https://github.com/level3tjg/YTMiniplayerEnabler/
%hook YTWatchMiniBarViewController
- (void)updateMiniBarPlayerStateFromRenderer {