Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-03-27 19:09:33 -05:00 committed by GitHub
parent c9bb8b3ebb
commit 83f6140426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,13 +41,15 @@ NSBundle *tweakBundle = uYouPlusBundle();
// Workaround: uYou 3.0.3 Adblock fix.
%hook YTAdsInnerTubeContextDecorator
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeYouTubeAds"]) {
- (void)decorateContext:(id)context {}
- (void)decorateContext:(id)context {
}
}
%end
%hook YTAccountScopedAdsInnerTubeContextDecorator
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeYouTubeAds"]) {
- (void)decorateContext:(id)context {}
- (void)decorateContext:(id)context {
}
}
%end
BOOL isAd(YTIElementRenderer *self) {