Compatibility
Compatible with iOS 11.0 +
Description
Removes YouTube Premium upsells.
Changelog
1.0.6: Fixed premium full-screen dialog not being removed (regression of 1.0.5)
1.0.5: Fixed images in the community posts not being displayed in full-screen on tap
Source Code
#import <YouTubeHeader/YTIShowFullscreenInterstitialCommand.h> // Alert %hook YTCommerceEventGroupHandler - (void)addEventHandlers {} %end // Full-screen %hook YTInterstitialPromoEventGroupHandler - (void)addEventHandlers {} %end %hook YTPromosheetEventGroupHandler - (void)addEventHandlers {} %end %hook YTPromoThrottleController - (BOOL)canShowThrottledPromo { return NO; } - (BOOL)canShowThrottledPromoWithFrequencyCap:(id)arg1 { return NO; } - (BOOL)canShowThrottledPromoWithFrequencyCaps:(id)arg1 { return NO; } %end %hook YTIShowFullscreenInterstitialCommand - (BOOL)shouldThrottleInterstitial { if (self.hasModalClientThrottlingRules) self.modalClientThrottlingRules.oncePerTimeWindow = YES; return %orig; } %end // "Try new features" in settings %hook YTSettingsSectionItemManager - (void)updatePremiumEarlyAccessSectionWithEntry:(id)arg1 {} %end // Survey %hook YTSurveyController - (void)showSurveyWithRenderer:(id)arg1 surveyParentResponder:(id)arg2 {} %end