mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
c9bb8b3ebb
commit
83f6140426
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue