Skip to content

Commit

Permalink
Updated “ Fix LowContrastMode” Option
Browse files Browse the repository at this point in the history
I modified Settings.xm and I had to do this change if anyone wanted to bypass the new restrictions I added.
  • Loading branch information
arichornlover authored Apr 3, 2024
1 parent fe3f7a5 commit 9a9d557
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ BOOL isAd(YTIElementRenderer *self) {
- (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; }
%end

// YTNoTracking - @arichorn - https://github.com/arichorn/YTNoTracking/
// YTNoTracking - @arichornlover - https://github.com/arichornlover/YTNoTracking/
%hook UIApplication
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
NSString *originalURLString = [url absoluteString];
Expand Down Expand Up @@ -350,10 +350,21 @@ BOOL isAd(YTIElementRenderer *self) {
}
%end

// Fix LowContrastMode - @arichorn
// Fix LowContrastMode - @arichornlover
%group gFixLowContrastMode
%hook YTVersionUtils // Supported LowContrastMode Version
+ (NSString *)appVersion { return @"17.38.10"; }
%hook NSBundle
- (id)objectForInfoDictionaryKey:(NSString *)key {
if ([key isEqualToString:@"CFBundleShortVersionString"]) {
return @"17.38.10";
}
return %orig;
}
%end

%hook YTVersionUtils
+ (NSString *)appVersion {
return @"17.38.10";
}
%end

%hook YTSettingsCell // Remove v17.38.10 Version Number - @Dayanch96
Expand All @@ -368,21 +379,21 @@ BOOL isAd(YTIElementRenderer *self) {
%end
%end

// Disable Modern/Rounded Buttons (_ASDisplayView not included) - @arichorn
// Disable Modern/Rounded Buttons (_ASDisplayView not included) - @arichornlover
%group gDisableModernButtons
%hook YTQTMButton // Disable Modern/Rounded Buttons
+ (BOOL)buttonModernizationEnabled { return NO; }
%end
%end

// Disable Rounded Hints with no Rounded Corners - @arichorn
// Disable Rounded Hints with no Rounded Corners - @arichornlover
%group gDisableRoundedHints
%hook YTBubbleHintView // Disable Modern/Rounded Hints
+ (BOOL)modernRoundedCornersEnabled { return NO; }
%end
%end

// Disable Modern Flags - @arichorn
// Disable Modern Flags - @arichornlover
%group gDisableModernFlags
%hook YTColdConfig
// Disable Modern Content
Expand Down Expand Up @@ -423,7 +434,7 @@ BOOL isAd(YTIElementRenderer *self) {
%end
%end

// Disable Ambient Mode in Fullscreen - @arichorn
// Disable Ambient Mode in Fullscreen - @arichornlover
%group gDisableAmbientMode
%hook YTCinematicContainerView
- (BOOL)watchFullScreenCinematicSupported {
Expand Down

0 comments on commit 9a9d557

Please sign in to comment.