Skip to content

Commit

Permalink
Skips content warning before playing *some videos - @PoomSmart
Browse files Browse the repository at this point in the history
  • Loading branch information
qnblackcat committed Aug 13, 2022
1 parent c78e5b9 commit 329fb16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
@end

// uYouPlus
@interface YTPlayabilityResolutionUserActionUIController : NSObject // Skips content warning before playing *some videos - @PoomSmart
- (void)confirmAlertDidPressConfirm;
@end

@interface YTMainAppControlsOverlayView : UIView
@end

Expand Down
5 changes: 5 additions & 0 deletions uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 329fb16

Please sign in to comment.