update code

This commit is contained in:
qnblackcat
2021-10-01 18:19:48 +07:00
parent c9d45dc8a2
commit 55139dc0a9
+26 -18
View File
@@ -2,7 +2,17 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
//YTClassicVideoQuality // YouRememberCaption
//Source code: https://www.ios-repo-updates.com/repository/poomsmart/package/com.ps.youremembercaption/
%hook YTColdConfig
- (BOOL)respectDeviceCaptionSetting {
return NO;
}
%end
// YTClassicVideoQuality
// Source code: https://github.com/PoomSmart/YTClassicVideoQuality
@interface YTVideoQualitySwitchOriginalController : NSObject @interface YTVideoQualitySwitchOriginalController : NSObject
- (instancetype)initWithParentResponder:(id)responder; - (instancetype)initWithParentResponder:(id)responder;
@@ -17,7 +27,9 @@
%end %end
//YTNoCheckLocalNetwork // YTNoCheckLocalNetwork
// Source code: https://poomsmart.github.io/repo/depictions/ytnochecklocalnetwork.html
%hook YTHotConfig %hook YTHotConfig
- (BOOL)isPromptForLocalNetworkPermissionsEnabled { - (BOOL)isPromptForLocalNetworkPermissionsEnabled {
@@ -25,23 +37,9 @@
} }
%end %end
//YouRememberCaption // YTNoHoverCards
%hook YTColdConfig // Source code: https://github.com/level3tjg/YTNoHoverCards
- (BOOL)respectDeviceCaptionSetting {
return NO;
}
%end
//YTSystemAppearance
%hook YTColdConfig
- (BOOL)shouldUseAppThemeSetting {
return YES;
}
%end
//YTNoHoverCards
@interface YTCollectionViewCell : UICollectionViewCell @interface YTCollectionViewCell : UICollectionViewCell
@end @end
@@ -86,3 +84,13 @@
%orig; %orig;
} }
%end %end
// YTSystemAppearance
// Source code: https://poomsmart.github.io/repo/depictions/ytsystemappearance.html
%hook YTColdConfig
- (BOOL)shouldUseAppThemeSetting {
return YES;
}
%end