From aa338eab73cc6cbc0f6f88f05994f25561d7930b Mon Sep 17 00:00:00 2001 From: qnblackcat Date: Sun, 18 Sep 2022 17:00:46 +0700 Subject: [PATCH] disable device_challenge_request hack? --- Settings.xm | 4 +++- uYouPlus.xm | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Settings.xm b/Settings.xm index 715a6fd..90b2b08 100644 --- a/Settings.xm +++ b/Settings.xm @@ -62,6 +62,7 @@ extern BOOL replacePreviousAndNextButton(); return YES; }; + /* YTSettingsSectionItem *fixGoogleSigin = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"FIX_GOOGLE_SIGNIN") titleDescription:LOC(@"FIX_GOOGLE_SIGNIN_DESC")]; fixGoogleSigin.hasSwitch = YES; fixGoogleSigin.switchVisible = YES; @@ -70,6 +71,7 @@ extern BOOL replacePreviousAndNextButton(); [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"fixGoogleSigin_enabled"]; return YES; }; + */ YTSettingsSectionItem *hidePaidPromotionCard = [[%c(YTSettingsSectionItem) alloc] initWithTitle:LOC(@"HIDE_PAID_PROMOTION_CARDS") titleDescription:LOC(@"HIDE_PAID_PROMOTION_CARDS_DESC")]; hidePaidPromotionCard.hasSwitch = YES; @@ -188,7 +190,7 @@ extern BOOL replacePreviousAndNextButton(); return YES; }; - NSMutableArray *sectionItems = [NSMutableArray arrayWithArray:@[killApp, autoFull, castConfirm, ytMiniPlayer, fixGoogleSigin, hideAutoplaySwitch, hideCC, hideHUD, hidePaidPromotionCard, hidePreviousAndNextButton, hideHoverCard, bigYTMiniPlayer, oledDarkMode, oledKeyBoard, replacePreviousAndNextButton, reExplore]]; + NSMutableArray *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]; } diff --git a/uYouPlus.xm b/uYouPlus.xm index d45445d..cbabb94 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -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 // https://gist.github.com/PoomSmart/ef5b172fd4c5371764e027bea2613f93 // https://github.com/qnblackcat/uYouPlus/pull/398 +/* %group gDevice_challenge_request_hack %hook SSOService + (id)fetcherWithRequest:(NSMutableURLRequest *)request configuration:(id)configuration { @@ -500,6 +501,7 @@ BOOL replacePreviousAndNextButton() { } %end %end +*/ // Fix login for YouTube 17.33.2 and higher %hook SSOKeychainCore @@ -896,7 +898,7 @@ static void replaceTab(YTIGuideResponse *response) { if (@available(iOS 16, *)) { %init(iOS16); } - if (!fixGoogleSigin()) { - %init(gDevice_challenge_request_hack); - } + // if (!fixGoogleSigin()) { + // %init(gDevice_challenge_request_hack); + // } }