mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-15 16:23:31 +00:00
Updated “ Fix LowContrastMode” Option
I modified Settings.xm and I had to do this change if anyone wanted to bypass the new restrictions I added.
This commit is contained in:
parent
fe3f7a5e41
commit
9a9d557f65
1 changed files with 19 additions and 8 deletions
|
|
@ -299,7 +299,7 @@ BOOL isAd(YTIElementRenderer *self) {
|
||||||
- (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; }
|
- (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// YTNoTracking - @arichorn - https://github.com/arichorn/YTNoTracking/
|
// YTNoTracking - @arichornlover - https://github.com/arichornlover/YTNoTracking/
|
||||||
%hook UIApplication
|
%hook UIApplication
|
||||||
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
|
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
|
||||||
NSString *originalURLString = [url absoluteString];
|
NSString *originalURLString = [url absoluteString];
|
||||||
|
|
@ -350,10 +350,21 @@ BOOL isAd(YTIElementRenderer *self) {
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Fix LowContrastMode - @arichorn
|
// Fix LowContrastMode - @arichornlover
|
||||||
%group gFixLowContrastMode
|
%group gFixLowContrastMode
|
||||||
%hook YTVersionUtils // Supported LowContrastMode Version
|
%hook NSBundle
|
||||||
+ (NSString *)appVersion { return @"17.38.10"; }
|
- (id)objectForInfoDictionaryKey:(NSString *)key {
|
||||||
|
if ([key isEqualToString:@"CFBundleShortVersionString"]) {
|
||||||
|
return @"17.38.10";
|
||||||
|
}
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTVersionUtils
|
||||||
|
+ (NSString *)appVersion {
|
||||||
|
return @"17.38.10";
|
||||||
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTSettingsCell // Remove v17.38.10 Version Number - @Dayanch96
|
%hook YTSettingsCell // Remove v17.38.10 Version Number - @Dayanch96
|
||||||
|
|
@ -368,21 +379,21 @@ BOOL isAd(YTIElementRenderer *self) {
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Disable Modern/Rounded Buttons (_ASDisplayView not included) - @arichorn
|
// Disable Modern/Rounded Buttons (_ASDisplayView not included) - @arichornlover
|
||||||
%group gDisableModernButtons
|
%group gDisableModernButtons
|
||||||
%hook YTQTMButton // Disable Modern/Rounded Buttons
|
%hook YTQTMButton // Disable Modern/Rounded Buttons
|
||||||
+ (BOOL)buttonModernizationEnabled { return NO; }
|
+ (BOOL)buttonModernizationEnabled { return NO; }
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Disable Rounded Hints with no Rounded Corners - @arichorn
|
// Disable Rounded Hints with no Rounded Corners - @arichornlover
|
||||||
%group gDisableRoundedHints
|
%group gDisableRoundedHints
|
||||||
%hook YTBubbleHintView // Disable Modern/Rounded Hints
|
%hook YTBubbleHintView // Disable Modern/Rounded Hints
|
||||||
+ (BOOL)modernRoundedCornersEnabled { return NO; }
|
+ (BOOL)modernRoundedCornersEnabled { return NO; }
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Disable Modern Flags - @arichorn
|
// Disable Modern Flags - @arichornlover
|
||||||
%group gDisableModernFlags
|
%group gDisableModernFlags
|
||||||
%hook YTColdConfig
|
%hook YTColdConfig
|
||||||
// Disable Modern Content
|
// Disable Modern Content
|
||||||
|
|
@ -423,7 +434,7 @@ BOOL isAd(YTIElementRenderer *self) {
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Disable Ambient Mode in Fullscreen - @arichorn
|
// Disable Ambient Mode in Fullscreen - @arichornlover
|
||||||
%group gDisableAmbientMode
|
%group gDisableAmbientMode
|
||||||
%hook YTCinematicContainerView
|
%hook YTCinematicContainerView
|
||||||
- (BOOL)watchFullScreenCinematicSupported {
|
- (BOOL)watchFullScreenCinematicSupported {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue