Updated YTShortsProgress to v1.0.3

This is my own version of YTShortsProgress, a contribution to PoomSmarts Tweak.

Changes:
Removed Flag `mobileShortsTablnlined` as a replacement for the new flag `mobileShortsTablnlinedExpandWatchOnDismiss`, the flag that I removed isn’t on the app anymore.

Added an Implementation to remove YouTube’s Tracking Parameters
This commit is contained in:
arichorn 2023-08-30 16:23:08 -05:00 committed by GitHub
parent 7f4faf44ed
commit b3cb53e998
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,6 +345,32 @@ static void repositionCreateTab(YTIGuideResponse *response) {
- (BOOL)savedSettingShouldExpire { return NO; }
%end
// YTShortsProgress v1.0.3 - https://github.com/PoomSmart/YTShortsProgress/
%hook YTReelPlayerViewController
- (BOOL)shouldEnablePlayerBar { return YES; }
- (BOOL)shouldAlwaysEnablePlayerBar { return YES; }
- (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; }
%end
%hook YTReelPlayerViewControllerSub
- (BOOL)shouldEnablePlayerBar { return YES; }
- (BOOL)shouldAlwaysEnablePlayerBar { return YES; }
- (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; }
%end
%hook YTColdConfig
- (BOOL)iosEnableVideoPlayerScrubber { return YES; }
- (BOOL)mobileShortsTablnlinedExpandWatchOnDismiss { return YES; }
%end
%hook YTHotConfig
- (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; }
%end
%hook YTIReelPlayerOverlayRenderer
- (BOOL)hasTrackingParams { return NO; }
%end
// YTNoPaidPromo: https://github.com/PoomSmart/YTNoPaidPromo
%hook YTMainAppVideoPlayerOverlayViewController
- (void)setPaidContentWithPlayerData:(id)data {