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
+5
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 {