mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Skips content warning before playing *some videos - @PoomSmart
This commit is contained in:
parent
c78e5b9fd9
commit
329fb1681a
2 changed files with 9 additions and 0 deletions
4
Header.h
4
Header.h
|
|
@ -9,6 +9,10 @@
|
|||
@end
|
||||
|
||||
// uYouPlus
|
||||
@interface YTPlayabilityResolutionUserActionUIController : NSObject // Skips content warning before playing *some videos - @PoomSmart
|
||||
- (void)confirmAlertDidPressConfirm;
|
||||
@end
|
||||
|
||||
@interface YTMainAppControlsOverlayView : UIView
|
||||
@end
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue