Added Client-Side VersionSpoofer Option

This commit is contained in:
arichorn 2023-07-08 00:45:34 -05:00 committed by GitHub
parent 6e31be103d
commit a14bab860f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,8 +138,13 @@ static BOOL version42() {
}
%group gVersion0
%hook YTVersionUtils // 0
+ (NSString *)appVersion { return @"18.25.1"; }
%hook YTVersionUtils
+ (NSString *)appVersion {
NSURL *versionURL = [NSURL URLWithString:@"https://raw.githubusercontent.com/arichorn/YTAppVersionSpoofer-WIP/main/version.txt"];
NSString *latestVersion = [NSString stringWithContentsOfURL:versionURL encoding:NSUTF8StringEncoding error:nil];
return latestVersion ?: @"18.25.1";
}
%end
%end