mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Fix AdBlock Workaround (Lite) Option
This commit is contained in:
parent
312c1a11ce
commit
fb835a25fa
1 changed files with 23 additions and 10 deletions
|
|
@ -87,8 +87,29 @@ static int contrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
// uYou AdBlocking Workaround LITE (This Version will only remove ads from Videos/Shorts!) - @PoomSmart
|
||||
// uYou AdBlock Workaround LITE (This Version will only remove ads from Videos/Shorts!) - @PoomSmart
|
||||
%group uYouAdBlockingWorkaroundLite
|
||||
%hook YTHotConfig
|
||||
- (BOOL)disableAfmaIdfaCollection { return NO; }
|
||||
%end
|
||||
|
||||
%hook YTIPlayerResponse
|
||||
- (BOOL)isMonetized { return NO; }
|
||||
%end
|
||||
|
||||
%hook YTDataUtils
|
||||
+ (id)spamSignalsDictionary { return @{}; }
|
||||
+ (id)spamSignalsDictionaryWithoutIDFA { return @{}; }
|
||||
%end
|
||||
|
||||
%hook YTAdsInnerTubeContextDecorator
|
||||
- (void)decorateContext:(id)context { %orig(nil); }
|
||||
%end
|
||||
|
||||
%hook YTAccountScopedAdsInnerTubeContextDecorator
|
||||
- (void)decorateContext:(id)context { %orig(nil); }
|
||||
%end
|
||||
|
||||
%hook YTReelInfinitePlaybackDataSource
|
||||
- (void)setReels:(NSMutableOrderedSet <YTReelModel *> *)reels {
|
||||
[reels removeObjectsAtIndexes:[reels indexesOfObjectsPassingTest:^BOOL(YTReelModel *obj, NSUInteger idx, BOOL *stop) {
|
||||
|
|
@ -97,17 +118,9 @@ static int contrastMode() {
|
|||
%orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTAdsInnerTubeContextDecorator
|
||||
- (void)decorateContext:(id)context {}
|
||||
%end
|
||||
|
||||
%hook YTAccountScopedAdsInnerTubeContextDecorator
|
||||
- (void)decorateContext:(id)context {}
|
||||
%end
|
||||
%end
|
||||
|
||||
// uYou AdBlocking Workaround (for uYou Option) - @PoomSmart
|
||||
// uYou AdBlock Workaround (for uYou Option) - @PoomSmart
|
||||
%group uYouAdBlockingWorkaround
|
||||
// Workaround: uYou 3.0.3 Adblock fix - @PoomSmart
|
||||
%hook YTReelInfinitePlaybackDataSource
|
||||
|
|
|
|||
Loading…
Reference in a new issue