mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
enable supportsAlternateIcons
This commit is contained in:
parent
cd1dcf8826
commit
b0ab654e80
1 changed files with 12 additions and 5 deletions
|
|
@ -52,7 +52,14 @@ static int contrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
// Workaround: uYou 3.0.3 Adblock fix.
|
||||
// Enable Alternate Icons
|
||||
%hook UIApplication
|
||||
- (BOOL)supportsAlternateIcons {
|
||||
return YES;
|
||||
}
|
||||
%end
|
||||
|
||||
// Workaround: uYou 3.0.3 Adblock fix - @PoomSmart
|
||||
%hook YTAdsInnerTubeContextDecorator
|
||||
- (void)decorateContext:(id)context {
|
||||
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeYouTubeAds"]) {}
|
||||
|
|
@ -313,7 +320,7 @@ BOOL isAd(YTIElementRenderer *self) {
|
|||
- (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; }
|
||||
%end
|
||||
|
||||
// YTNoTracking - @arichornlover - https://github.com/arichornlover/YTNoTracking/
|
||||
// YTNoTracking - @arichornlover - https://github.com/arichornlover/YTNoTracking/ - OUTDATED
|
||||
%hook UIApplication
|
||||
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
|
||||
NSString *originalURLString = [url absoluteString];
|
||||
|
|
@ -689,7 +696,7 @@ BOOL isAd(YTIElementRenderer *self) {
|
|||
}
|
||||
%end
|
||||
|
||||
// Hide Fullscreen Button - @arichornlover - YouQuality is Incompatibile with this Option
|
||||
// Hide Fullscreen Button - @arichornlover - PoomSmart's YouQuality tweak breaks when enabling this
|
||||
%hook YTInlinePlayerBarContainerView
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
|
|
@ -956,7 +963,7 @@ BOOL isAd(YTIElementRenderer *self) {
|
|||
}
|
||||
%end
|
||||
|
||||
// Hide the (Connect / Thanks / Save / Report) Buttons under the Video Player - 17.x.x and up - @PoomSmart (inspired by @arichornlover) DEPRECATED METHOD ⚠️
|
||||
// Hide the (Connect / Thanks / Save / Report) Buttons under the Video Player - 17.x.x and up - @arichornlover (inspired by @PoomSmart's version) DEPRECATED METHOD ⚠️
|
||||
%hook _ASDisplayView
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
|
|
@ -1235,7 +1242,7 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
|
|||
%end
|
||||
%end
|
||||
|
||||
// Hide Indicators - @Dayanch96 & @arichorn
|
||||
// Hide Indicators - @Dayanch96 & @arichornlover
|
||||
%group gHideSubscriptionsNotificationBadge
|
||||
%hook YTPivotBarIndicatorView
|
||||
- (void)didMoveToWindow {
|
||||
|
|
|
|||
Loading…
Reference in a new issue