mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-22 02:38:45 -04:00
Updated
This commit is contained in:
@@ -126,6 +126,16 @@ extern NSBundle *YTLitePlusBundle();
|
|||||||
# pragma mark - App Settings Overlay Options
|
# pragma mark - App Settings Overlay Options
|
||||||
YTSettingsSectionItem *appSettingsOverlayGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"App Settings Overlay Options") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
YTSettingsSectionItem *appSettingsOverlayGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"App Settings Overlay Options") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||||
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_ACCOUNT_SECTION")
|
||||||
|
titleDescription:LOC(@"APP_RESTART_DESC")
|
||||||
|
accessibilityIdentifier:nil
|
||||||
|
switchOn:IsEnabled(@"disableAccountSection_enabled")
|
||||||
|
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableAccountSection_enabled"];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
settingItemId:0],
|
||||||
|
|
||||||
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_DONTEATMYCONTENT_SECTION")
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_DONTEATMYCONTENT_SECTION")
|
||||||
titleDescription:LOC(@"APP_RESTART_DESC")
|
titleDescription:LOC(@"APP_RESTART_DESC")
|
||||||
accessibilityIdentifier:nil
|
accessibilityIdentifier:nil
|
||||||
@@ -176,6 +186,16 @@ extern NSBundle *YTLitePlusBundle();
|
|||||||
}
|
}
|
||||||
settingItemId:0],
|
settingItemId:0],
|
||||||
|
|
||||||
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_VIDEOQUALITYPREFERENCES_SECTION")
|
||||||
|
titleDescription:LOC(@"APP_RESTART_DESC")
|
||||||
|
accessibilityIdentifier:nil
|
||||||
|
switchOn:IsEnabled(@"disableVideoQualityPreferencesSection_enabled")
|
||||||
|
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableVideoQualityPreferencesSection_enabled"];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
settingItemId:0],
|
||||||
|
|
||||||
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_NOTIFICATIONS_SECTION")
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_NOTIFICATIONS_SECTION")
|
||||||
titleDescription:LOC(@"APP_RESTART_DESC")
|
titleDescription:LOC(@"APP_RESTART_DESC")
|
||||||
accessibilityIdentifier:nil
|
accessibilityIdentifier:nil
|
||||||
@@ -186,12 +206,32 @@ extern NSBundle *YTLitePlusBundle();
|
|||||||
}
|
}
|
||||||
settingItemId:0],
|
settingItemId:0],
|
||||||
|
|
||||||
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_HISTORYANDPRIVACY_SECTION")
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_MANAGEALLHISTORY_SECTION")
|
||||||
titleDescription:LOC(@"APP_RESTART_DESC")
|
titleDescription:LOC(@"APP_RESTART_DESC")
|
||||||
accessibilityIdentifier:nil
|
accessibilityIdentifier:nil
|
||||||
switchOn:IsEnabled(@"disableHistoryAndPrivacySection_enabled")
|
switchOn:IsEnabled(@"disableManageAllHistorySection_enabled")
|
||||||
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableHistoryAndPrivacySection_enabled"];
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableManageAllHistorySection_enabled"];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
settingItemId:0],
|
||||||
|
|
||||||
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_YOURDATAINYOUTUBE_SECTION")
|
||||||
|
titleDescription:LOC(@"APP_RESTART_DESC")
|
||||||
|
accessibilityIdentifier:nil
|
||||||
|
switchOn:IsEnabled(@"disableYourDataInYouTubeSection_enabled")
|
||||||
|
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableYourDataInYouTubeSection_enabled"];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
settingItemId:0],
|
||||||
|
|
||||||
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_PRIVACY_SECTION")
|
||||||
|
titleDescription:LOC(@"APP_RESTART_DESC")
|
||||||
|
accessibilityIdentifier:nil
|
||||||
|
switchOn:IsEnabled(@"disablePrivacySection_enabled")
|
||||||
|
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disablePrivacySection_enabled"];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
settingItemId:0],
|
settingItemId:0],
|
||||||
|
@@ -330,21 +330,45 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
// App Settings Overlay Options
|
// App Settings Overlay Options
|
||||||
|
%group gDisableAccountSection
|
||||||
|
%hook YTSettingsSectionItemManager
|
||||||
|
- (void)updateAccountSwitcherSectionWithEntry:(id)arg1 {} // Account
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
%group gDisableDontEatMyContentSection
|
%group gDisableDontEatMyContentSection
|
||||||
%hook YTSettingsSectionItemManager
|
%hook YTSettingsSectionItemManager
|
||||||
- (void)updateDEMCSectionWithEntry:(id)arg1 {} // DontEatMyContent
|
- (void)updateDEMCSectionWithEntry:(id)arg1 { // DontEatMyContent
|
||||||
|
%orig;
|
||||||
|
NSMutableArray *sectionItems = [self valueForKey:@"_sectionItems"];
|
||||||
|
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"title == %@", @"DontEatMyContent"];
|
||||||
|
NSArray *itemsToRemove = [sectionItems filteredArrayUsingPredicate:predicate];
|
||||||
|
[sectionItems removeObjectsInArray:itemsToRemove];
|
||||||
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%group gDisableReturnYouTubeDislikeSection
|
%group gDisableReturnYouTubeDislikeSection
|
||||||
%hook YTSettingsSectionItemManager
|
%hook YTSettingsSectionItemManager
|
||||||
- (void)updateRYDSectionWithEntry:(id)arg1 {} // Return YouTube Dislike
|
- (void)updateRYDSectionWithEntry:(id)arg1 { // Return YouTube Dislike
|
||||||
|
%orig;
|
||||||
|
NSMutableArray *sectionItems = [self valueForKey:@"_sectionItems"];
|
||||||
|
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"title == %@", @"Return YouTube Dislike"];
|
||||||
|
NSArray *itemsToRemove = [sectionItems filteredArrayUsingPredicate:predicate];
|
||||||
|
[sectionItems removeObjectsInArray:itemsToRemove];
|
||||||
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%group gDisableYouPiPSection
|
%group gDisableYouPiPSection
|
||||||
%hook YTSettingsSectionItemManager
|
%hook YTSettingsSectionItemManager
|
||||||
- (void)updateYouPiPSectionWithEntry:(id)arg1 {} // YouPiP
|
- (void)updateYouPiPSectionWithEntry:(id)arg1 { // YouPiP
|
||||||
|
%orig;
|
||||||
|
NSMutableArray *sectionItems = [self valueForKey:@"_sectionItems"];
|
||||||
|
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"title == %@", @"YouPiP"];
|
||||||
|
NSArray *itemsToRemove = [sectionItems filteredArrayUsingPredicate:predicate];
|
||||||
|
[sectionItems removeObjectsInArray:itemsToRemove];
|
||||||
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
@@ -356,7 +380,13 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
|
|
||||||
%group gDisableTryNewFeaturesSection
|
%group gDisableTryNewFeaturesSection
|
||||||
%hook YTSettingsSectionItemManager
|
%hook YTSettingsSectionItemManager
|
||||||
- (void)updatePremiumEarlyAccessSectionWithEntry:(id)arg1 {} // Try New Features
|
- (void)updatePremiumEarlyAccessSectionWithEntry:(id)arg1 {} // Try new features
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
|
%group gDisableVideoQualityPreferencesSection
|
||||||
|
%hook YTSettingsSectionItemManager
|
||||||
|
- (void)updateVideoQualitySectionWithEntry:(id)arg1 {} // Video quality preferences
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
@@ -366,10 +396,20 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%group gDisableHistoryAndPrivacySection
|
%group gDisableManageAllHistorySection
|
||||||
|
%hook YTSettingsSectionItemManager
|
||||||
|
- (void)updateHistorySectionWithEntry:(id)arg1 {} // Manage all history
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
|
%group gDisableYourDataInYouTubeSection
|
||||||
|
%hook YTSettingsSectionItemManager
|
||||||
|
- (void)updateYourDataSectionWithEntry:(id)arg1 {} // Your data in YouTube
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
|
%group gDisablePrivacySection
|
||||||
%hook YTSettingsSectionItemManager
|
%hook YTSettingsSectionItemManager
|
||||||
- (void)updateHistoryAndPrivacySectionWithEntry:(id)arg1 {} // History And Privacy
|
|
||||||
- (void)updateHistorySectionWithEntry:(id)arg1 {} // History
|
|
||||||
- (void)updatePrivacySectionWithEntry:(id)arg1 {} // Privacy
|
- (void)updatePrivacySectionWithEntry:(id)arg1 {} // Privacy
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
@@ -464,6 +504,9 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
if (IsEnabled(@"stockVolumeHUD_enabled")) {
|
if (IsEnabled(@"stockVolumeHUD_enabled")) {
|
||||||
%init(gStockVolumeHUD);
|
%init(gStockVolumeHUD);
|
||||||
}
|
}
|
||||||
|
if (IsEnabled(@"disableAccountSection_enabled")) {
|
||||||
|
%init(gDisableAccountSection);
|
||||||
|
}
|
||||||
if (IsEnabled(@"disableDontEatMyContentSection_enabled")) {
|
if (IsEnabled(@"disableDontEatMyContentSection_enabled")) {
|
||||||
%init(gDisableDontEatMyContentSection);
|
%init(gDisableDontEatMyContentSection);
|
||||||
}
|
}
|
||||||
@@ -479,11 +522,20 @@ static BOOL IsEnabled(NSString *key) {
|
|||||||
if (IsEnabled(@"disableTryNewFeaturesSection_enabled")) {
|
if (IsEnabled(@"disableTryNewFeaturesSection_enabled")) {
|
||||||
%init(gDisableTryNewFeaturesSection);
|
%init(gDisableTryNewFeaturesSection);
|
||||||
}
|
}
|
||||||
|
if (IsEnabled(@"disableVideoQualityPreferencesSection_enabled")) {
|
||||||
|
%init(gDisableVideoQualityPreferencesSection);
|
||||||
|
}
|
||||||
if (IsEnabled(@"disableNotificationsSection_enabled")) {
|
if (IsEnabled(@"disableNotificationsSection_enabled")) {
|
||||||
%init(gDisableNotificationsSection);
|
%init(gDisableNotificationsSection);
|
||||||
}
|
}
|
||||||
if (IsEnabled(@"disableHistoryAndPrivacySection_enabled")) {
|
if (IsEnabled(@"disableManageAllHistorySection_enabled")) {
|
||||||
%init(gDisableHistoryAndPrivacySection);
|
%init(gDisableManageAllHistorySection);
|
||||||
|
}
|
||||||
|
if (IsEnabled(@"disableYourDataInYouTubeSection_enabled")) {
|
||||||
|
%init(gDisableYourDataInYouTubeSection);
|
||||||
|
}
|
||||||
|
if (IsEnabled(@"disablePrivacySection_enabled")) {
|
||||||
|
%init(gDisablePrivacySection);
|
||||||
}
|
}
|
||||||
if (IsEnabled(@"disableLiveChatSection_enabled")) {
|
if (IsEnabled(@"disableLiveChatSection_enabled")) {
|
||||||
%init(gDisableLiveChatSection);
|
%init(gDisableLiveChatSection);
|
||||||
|
Reference in New Issue
Block a user