disable device_challenge_request hack?
This commit is contained in:
+3
-1
@@ -62,6 +62,7 @@ extern BOOL replacePreviousAndNextButton();
|
|||||||
return YES;
|
return YES;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
YTSettingsSectionItem *fixGoogleSigin = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"FIX_GOOGLE_SIGNIN") titleDescription:LOC(@"FIX_GOOGLE_SIGNIN_DESC")];
|
YTSettingsSectionItem *fixGoogleSigin = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"FIX_GOOGLE_SIGNIN") titleDescription:LOC(@"FIX_GOOGLE_SIGNIN_DESC")];
|
||||||
fixGoogleSigin.hasSwitch = YES;
|
fixGoogleSigin.hasSwitch = YES;
|
||||||
fixGoogleSigin.switchVisible = YES;
|
fixGoogleSigin.switchVisible = YES;
|
||||||
@@ -70,6 +71,7 @@ extern BOOL replacePreviousAndNextButton();
|
|||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"fixGoogleSigin_enabled"];
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"fixGoogleSigin_enabled"];
|
||||||
return YES;
|
return YES;
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
YTSettingsSectionItem *hidePaidPromotionCard = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"HIDE_PAID_PROMOTION_CARDS") titleDescription:LOC(@"HIDE_PAID_PROMOTION_CARDS_DESC")];
|
YTSettingsSectionItem *hidePaidPromotionCard = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"HIDE_PAID_PROMOTION_CARDS") titleDescription:LOC(@"HIDE_PAID_PROMOTION_CARDS_DESC")];
|
||||||
hidePaidPromotionCard.hasSwitch = YES;
|
hidePaidPromotionCard.hasSwitch = YES;
|
||||||
@@ -188,7 +190,7 @@ extern BOOL replacePreviousAndNextButton();
|
|||||||
return YES;
|
return YES;
|
||||||
};
|
};
|
||||||
|
|
||||||
NSMutableArray <YTSettingsSectionItem *> *sectionItems = [NSMutableArray arrayWithArray:@[killApp, autoFull, castConfirm, ytMiniPlayer, fixGoogleSigin, hideAutoplaySwitch, hideCC, hideHUD, hidePaidPromotionCard, hidePreviousAndNextButton, hideHoverCard, bigYTMiniPlayer, oledDarkMode, oledKeyBoard, replacePreviousAndNextButton, reExplore]];
|
NSMutableArray <YTSettingsSectionItem *> *sectionItems = [NSMutableArray arrayWithArray:@[killApp, autoFull, castConfirm, ytMiniPlayer, hideAutoplaySwitch, hideCC, hideHUD, hidePaidPromotionCard, hidePreviousAndNextButton, hideHoverCard, bigYTMiniPlayer, oledDarkMode, oledKeyBoard, replacePreviousAndNextButton, reExplore]];
|
||||||
[delegate setSectionItems:sectionItems forCategory:uYouPlusSection title:@"uYouPlus" titleDescription:nil headerHidden:NO];
|
[delegate setSectionItems:sectionItems forCategory:uYouPlusSection title:@"uYouPlus" titleDescription:nil headerHidden:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-3
@@ -485,6 +485,7 @@ BOOL replacePreviousAndNextButton() {
|
|||||||
// Fix "You can't sign in to this app because Google can't confirm that it's safe" warning when signing in. by julioverne & PoomSmart
|
// Fix "You can't sign in to this app because Google can't confirm that it's safe" warning when signing in. by julioverne & PoomSmart
|
||||||
// https://gist.github.com/PoomSmart/ef5b172fd4c5371764e027bea2613f93
|
// https://gist.github.com/PoomSmart/ef5b172fd4c5371764e027bea2613f93
|
||||||
// https://github.com/qnblackcat/uYouPlus/pull/398
|
// https://github.com/qnblackcat/uYouPlus/pull/398
|
||||||
|
/*
|
||||||
%group gDevice_challenge_request_hack
|
%group gDevice_challenge_request_hack
|
||||||
%hook SSOService
|
%hook SSOService
|
||||||
+ (id)fetcherWithRequest:(NSMutableURLRequest *)request configuration:(id)configuration {
|
+ (id)fetcherWithRequest:(NSMutableURLRequest *)request configuration:(id)configuration {
|
||||||
@@ -500,6 +501,7 @@ BOOL replacePreviousAndNextButton() {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
*/
|
||||||
|
|
||||||
// Fix login for YouTube 17.33.2 and higher
|
// Fix login for YouTube 17.33.2 and higher
|
||||||
%hook SSOKeychainCore
|
%hook SSOKeychainCore
|
||||||
@@ -896,7 +898,7 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||||||
if (@available(iOS 16, *)) {
|
if (@available(iOS 16, *)) {
|
||||||
%init(iOS16);
|
%init(iOS16);
|
||||||
}
|
}
|
||||||
if (!fixGoogleSigin()) {
|
// if (!fixGoogleSigin()) {
|
||||||
%init(gDevice_challenge_request_hack);
|
// %init(gDevice_challenge_request_hack);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user