From efeb36f1e6de45e8f5ef021c6aee5bdee4f9493e Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Sun, 3 Sep 2023 18:38:02 -0500 Subject: [PATCH] New Options! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new options shown in the code replaces the old option “Disabled Wifi Related Settings” --- uYouPlus.xm | 91 +++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 75 insertions(+), 16 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 6884321..d6cdb68 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -395,19 +395,6 @@ static void repositionCreateTab(YTIGuideResponse *response) { } %end -// Disable Wifi Related Settings - @arichorn -%group gDisableWifiRelatedSettings -%hook YTSettingsSectionItemManager -- (void)updatePremiumEarlyAccessSectionWithEntry:(id)arg1 {} // Try New Features -- (void)updateAutoplaySectionWithEntry:(id)arg1 {} // Autoplay -- (void)updateNotificationSectionWithEntry:(id)arg1 {} // Notifications -- (void)updateHistorySectionWithEntry:(id)arg1 {} // History -- (void)updatePrivacySectionWithEntry:(id)arg1 {} // Privacy -- (void)updateHistoryAndPrivacySectionWithEntry:(id)arg1 {} // History & Privacy -- (void)updateLiveChatSectionWithEntry:(id)arg1 {} // Live chat -%end -%end - // YTNoModernUI - @arichorn %group gYTNoModernUI %hook YTVersionUtils // YTNoModernUI Original Version @@ -841,6 +828,57 @@ static void replaceTab(YTIGuideResponse *response) { } %end +// App Settings Overlay Options +%group gDisableDontEatMyContentSection +%hook YTSettingsSectionItemManager +- (void)updateDEMCSectionWithEntry:(id)arg1 {} // DontEatMyContent +%end +%end + +%group gDisableReturnYouTubeDislikeSection +%hook YTSettingsSectionItemManager +- (void)updateRYDSectionWithEntry:(id)arg1 {} // Return YouTube Dislike +%end +%end + +%group gDisableYouPiPSection +%hook YTSettingsSectionItemManager +- (void)updateYouPiPSectionWithEntry:(id)arg1 {} // YouPiP +%end +%end + +%group gDisableTryNewFeaturesSection +%hook YTSettingsSectionItemManager +- (void)updatePremiumEarlyAccessSectionWithEntry:(id)arg1 {} // Try New Features +%end +%end + +%group gDisableAutoplaySection +%hook YTSettingsSectionItemManager +- (void)updateAutoplaySectionWithEntry:(id)arg1 {} // Autoplay +%end +%end + +%group gDisableNotificationsSection +%hook YTSettingsSectionItemManager +- (void)updateNotificationSectionWithEntry:(id)arg1 {} // Notifications +%end +%end + +%group gDisableHistoryAndPrivacySection +%hook YTSettingsSectionItemManager +- (void)updateHistoryAndPrivacySectionWithEntry:(id)arg1 {} // History And Privacy +- (void)updateHistorySectionWithEntry:(id)arg1 {} // History +- (void)updatePrivacySectionWithEntry:(id)arg1 {} // Privacy +%end +%end + +%group gDisableLiveChatSection +%hook YTSettingsSectionItemManager +- (void)updateLiveChatSectionWithEntry:(id)arg1 {} // Live chat +%end +%end + // Miscellaneous // Disable hints - https://github.com/LillieH001/YouTube-Reborn/blob/v4/ %group gDisableHints @@ -952,9 +990,6 @@ static void replaceTab(YTIGuideResponse *response) { if (IsEnabled(@"hidePlayNextInQueue_enabled")) { %init(gHidePlayNextInQueue); } - if (IsEnabled(@"disableWifiRelatedSettings_enabled")) { - %init(gDisableWifiRelatedSettings); - } if (IsEnabled(@"disableHints_enabled")) { %init(gDisableHints); } @@ -988,6 +1023,30 @@ static void replaceTab(YTIGuideResponse *response) { if (IsEnabled(@"ytNoModernUI_enabled")) { %init(gYTNoModernUI); } + if (IsEnabled(@"disableDontEatMyContentSection_enabled")) { + %init(gDisableDontEatMyContentSection); + } + if (IsEnabled(@"disableReturnYouTubeDislikeSection_enabled")) { + %init(gDisableReturnYouTubeDislikeSection); + } + if (IsEnabled(@"disableYouPiPSection_enabled")) { + %init(gDisableYouPiPSection); + } + if (IsEnabled(@"disableTryNewFeaturesSection_enabled")) { + %init(gDisableTryNewFeaturesSection); + } + if (IsEnabled(@"disableAutoplaySection_enabled")) { + %init(gDisableAutoplaySection); + } + if (IsEnabled(@"disableNotificationsSection_enabled")) { + %init(gDisableNotificationsSection); + } + if (IsEnabled(@"disableHistoryAndPrivacySection_enabled")) { + %init(gDisableHistoryAndPrivacySection); + } + if (IsEnabled(@"disableLiveChatSection_enabled")) { + %init(gDisableLiveChatSection); + } // Disable updates [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"automaticallyCheckForUpdates"];