mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
New Options!
The new options shown in the code replaces the old option “Disabled Wifi Related Settings”
This commit is contained in:
parent
d20263bf35
commit
efeb36f1e6
1 changed files with 75 additions and 16 deletions
91
uYouPlus.xm
91
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"];
|
||||
|
|
|
|||
Loading…
Reference in a new issue