Remove 3 Broken Options

This commit is contained in:
Balackburn
2023-10-10 13:03:28 +02:00
parent a728740db6
commit 50e6a27ca6
9 changed files with 1 additions and 97 deletions

View File

@@ -136,36 +136,6 @@ extern NSBundle *YTLitePlusBundle();
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_DONTEATMYCONTENT_SECTION")
titleDescription:LOC(@"APP_RESTART_DESC")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"disableDontEatMyContentSection_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableDontEatMyContentSection_enabled"];
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_YOUTUBERETURNDISLIKE_SECTION")
titleDescription:LOC(@"APP_RESTART_DESC")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"disableReturnYouTubeDislikeSection_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableReturnYouTubeDislikeSection_enabled"];
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_YOUPIP_SECTION")
titleDescription:LOC(@"APP_RESTART_DESC")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"disableYouPiPSection_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableYouPiPSection_enabled"];
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_AUTOPLAY_SECTION")
titleDescription:LOC(@"APP_RESTART_DESC")
accessibilityIdentifier:nil

View File

@@ -336,42 +336,6 @@ static BOOL IsEnabled(NSString *key) {
%end
%end
%group gDisableDontEatMyContentSection
%hook YTSettingsSectionItemManager
- (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
%group gDisableReturnYouTubeDislikeSection
%hook YTSettingsSectionItemManager
- (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
%group gDisableYouPiPSection
%hook YTSettingsSectionItemManager
- (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
%group gDisableAutoplaySection
%hook YTSettingsSectionItemManager
- (void)updateAutoplaySectionWithEntry:(id)arg1 {} // Autoplay
@@ -507,15 +471,6 @@ static BOOL IsEnabled(NSString *key) {
if (IsEnabled(@"disableAccountSection_enabled")) {
%init(gDisableAccountSection);
}
if (IsEnabled(@"disableDontEatMyContentSection_enabled")) {
%init(gDisableDontEatMyContentSection);
}
if (IsEnabled(@"disableReturnYouTubeDislikeSection_enabled")) {
%init(gDisableReturnYouTubeDislikeSection);
}
if (IsEnabled(@"disableYouPiPSection_enabled")) {
%init(gDisableYouPiPSection);
}
if (IsEnabled(@"disableAutoplaySection_enabled")) {
%init(gDisableAutoplaySection);
}

View File

@@ -24,9 +24,6 @@
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
"HIDE_ACCOUNT_SECTION" = "Hide `Account` Section";
"HIDE_DONTEATMYCONTENT_SECTION" = "Hide `DontEatMyContent` Section";
"HIDE_YOUTUBERETURNDISLIKE_SECTION" = "Hide `YouTube Return Dislike` Section";
"HIDE_YOUPIP_SECTION" = "Hide `YouPiP` Section";
"HIDE_AUTOPLAY_SECTION" = "Hide `Autoplay` Section";
"HIDE_TRYNEWFEATURES_SECTION" = "Hide `Try New Features` Section";
"HIDE_VIDEOQUALITYPREFERENCES_SECTION" = "Hide `Video quality preferences` Section";

View File

@@ -24,9 +24,6 @@
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
"HIDE_ACCOUNT_SECTION" = "Hide `Account` Section";
"HIDE_DONTEATMYCONTENT_SECTION" = "Hide `DontEatMyContent` Section";
"HIDE_YOUTUBERETURNDISLIKE_SECTION" = "Hide `YouTube Return Dislike` Section";
"HIDE_YOUPIP_SECTION" = "Hide `YouPiP` Section";
"HIDE_AUTOPLAY_SECTION" = "Hide `Autoplay` Section";
"HIDE_TRYNEWFEATURES_SECTION" = "Hide `Try New Features` Section";
"HIDE_VIDEOQUALITYPREFERENCES_SECTION" = "Hide `Video quality preferences` Section";

View File

@@ -24,9 +24,6 @@
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
"HIDE_ACCOUNT_SECTION" = "Hide `Account` Section";
"HIDE_DONTEATMYCONTENT_SECTION" = "Hide `DontEatMyContent` Section";
"HIDE_YOUTUBERETURNDISLIKE_SECTION" = "Hide `YouTube Return Dislike` Section";
"HIDE_YOUPIP_SECTION" = "Hide `YouPiP` Section";
"HIDE_AUTOPLAY_SECTION" = "Hide `Autoplay` Section";
"HIDE_TRYNEWFEATURES_SECTION" = "Hide `Try New Features` Section";
"HIDE_VIDEOQUALITYPREFERENCES_SECTION" = "Hide `Video quality preferences` Section";

View File

@@ -24,9 +24,6 @@
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
"HIDE_ACCOUNT_SECTION" = "Hide `Account` Section";
"HIDE_DONTEATMYCONTENT_SECTION" = "Hide `DontEatMyContent` Section";
"HIDE_YOUTUBERETURNDISLIKE_SECTION" = "Hide `YouTube Return Dislike` Section";
"HIDE_YOUPIP_SECTION" = "Hide `YouPiP` Section";
"HIDE_AUTOPLAY_SECTION" = "Hide `Autoplay` Section";
"HIDE_TRYNEWFEATURES_SECTION" = "Hide `Try New Features` Section";
"HIDE_VIDEOQUALITYPREFERENCES_SECTION" = "Hide `Video quality preferences` Section";

View File

@@ -24,9 +24,6 @@
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
"HIDE_ACCOUNT_SECTION" = "Hide `Account` Section";
"HIDE_DONTEATMYCONTENT_SECTION" = "Hide `DontEatMyContent` Section";
"HIDE_YOUTUBERETURNDISLIKE_SECTION" = "Hide `YouTube Return Dislike` Section";
"HIDE_YOUPIP_SECTION" = "Hide `YouPiP` Section";
"HIDE_AUTOPLAY_SECTION" = "Hide `Autoplay` Section";
"HIDE_TRYNEWFEATURES_SECTION" = "Hide `Try New Features` Section";
"HIDE_VIDEOQUALITYPREFERENCES_SECTION" = "Hide `Video quality preferences` Section";

View File

@@ -39,9 +39,6 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
"HIDE_ACCOUNT_SECTION" = "Hide `Account` Section";
"HIDE_DONTEATMYCONTENT_SECTION" = "Hide `DontEatMyContent` Section";
"HIDE_YOUTUBERETURNDISLIKE_SECTION" = "Hide `YouTube Return Dislike` Section";
"HIDE_YOUPIP_SECTION" = "Hide `YouPiP` Section";
"HIDE_AUTOPLAY_SECTION" = "Hide `Autoplay` Section";
"HIDE_TRYNEWFEATURES_SECTION" = "Hide `Try New Features` Section";
"HIDE_VIDEOQUALITYPREFERENCES_SECTION" = "Hide `Video quality preferences` Section";

View File

@@ -24,9 +24,6 @@
"APP_SETTINGS_OVERLAY_OPTIONS" = "App Settings Overlay Options";
"HIDE_ACCOUNT_SECTION" = "Hide `Account` Section";
"HIDE_DONTEATMYCONTENT_SECTION" = "Hide `DontEatMyContent` Section";
"HIDE_YOUTUBERETURNDISLIKE_SECTION" = "Hide `YouTube Return Dislike` Section";
"HIDE_YOUPIP_SECTION" = "Hide `YouPiP` Section";
"HIDE_AUTOPLAY_SECTION" = "Hide `Autoplay` Section";
"HIDE_TRYNEWFEATURES_SECTION" = "Hide `Try New Features` Section";
"HIDE_VIDEOQUALITYPREFERENCES_SECTION" = "Hide `Video quality preferences` Section";