From fe0b4f7ab0001e8fc0d5cdfd519699f7b62afca3 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:59:39 -0500 Subject: [PATCH] Fix broken options Fix broken options related to the Sections DontEatMyContent, Return YouTube Dislike & YouPiP --- uYouPlus.xm | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index a030897..acaf4a5 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -829,53 +829,59 @@ static void replaceTab(YTIGuideResponse *response) { %end // App Settings Overlay Options -%group gDisableDontEatMyContentSection +%group gDisableDontEatMyContentSection // DontEatMyContent %hook YTSettingsSectionItemManager -- (void)updateDEMCSectionWithEntry:(id)arg1 {} // DontEatMyContent +- (void)updateDEMCSectionWithEntry:(id)arg1 { + [arg1 setEnabled:NO]; +} %end %end -%group gDisableReturnYouTubeDislikeSection +%group gDisableReturnYouTubeDislikeSection // Return YouTube Dislike %hook YTSettingsSectionItemManager -- (void)updateRYDSectionWithEntry:(id)arg1 {} // Return YouTube Dislike +- (void)updateRYDSectionWithEntry:(id)arg1 { + [arg1 setEnabled:NO]; +} %end %end -%group gDisableYouPiPSection +%group gDisableYouPiPSection // YouPiP %hook YTSettingsSectionItemManager -- (void)updateYouPiPSectionWithEntry:(id)arg1 {} // YouPiP +- (void)updateYouPiPSectionWithEntry:(id)arg1 { + [arg1 setEnabled:NO]; +} %end %end -%group gDisableTryNewFeaturesSection +%group gDisableTryNewFeaturesSection // Try New Features %hook YTSettingsSectionItemManager -- (void)updatePremiumEarlyAccessSectionWithEntry:(id)arg1 {} // Try New Features +- (void)updatePremiumEarlyAccessSectionWithEntry:(id)arg1 {} %end %end -%group gDisableAutoplaySection +%group gDisableAutoplaySection // Autoplay %hook YTSettingsSectionItemManager -- (void)updateAutoplaySectionWithEntry:(id)arg1 {} // Autoplay +- (void)updateAutoplaySectionWithEntry:(id)arg1 {} %end %end -%group gDisableNotificationsSection +%group gDisableNotificationsSection // Notifications %hook YTSettingsSectionItemManager -- (void)updateNotificationSectionWithEntry:(id)arg1 {} // Notifications +- (void)updateNotificationSectionWithEntry:(id)arg1 {} %end %end -%group gDisableHistoryAndPrivacySection +%group gDisableHistoryAndPrivacySection // History And Privacy %hook YTSettingsSectionItemManager -- (void)updateHistoryAndPrivacySectionWithEntry:(id)arg1 {} // History And Privacy -- (void)updateHistorySectionWithEntry:(id)arg1 {} // History -- (void)updatePrivacySectionWithEntry:(id)arg1 {} // Privacy +- (void)updateHistoryAndPrivacySectionWithEntry:(id)arg1 {} +- (void)updateHistorySectionWithEntry:(id)arg1 {} +- (void)updatePrivacySectionWithEntry:(id)arg1 {} %end %end -%group gDisableLiveChatSection +%group gDisableLiveChatSection // Live chat %hook YTSettingsSectionItemManager -- (void)updateLiveChatSectionWithEntry:(id)arg1 {} // Live chat +- (void)updateLiveChatSectionWithEntry:(id)arg1 {} %end %end