From 50e6a27ca6f2f0a7b7e3c09aaebdcbac704235d3 Mon Sep 17 00:00:00 2001 From: Balackburn Date: Tue, 10 Oct 2023 13:03:28 +0200 Subject: [PATCH] Remove 3 Broken Options --- Source/Settings.xm | 30 ------------- YTLitePlus.xm | 45 ------------------- .../ar.lproj/Localizable.strings | 5 +-- .../en.lproj/Localizable.strings | 3 -- .../pt.lproj/Localizable.strings | 3 -- .../ro.lproj/Localizable.strings | 3 -- .../ru.lproj/Localizable.strings | 3 -- .../template.lproj/Localizable.strings | 3 -- .../tr.lproj/Localizable.strings | 3 -- 9 files changed, 1 insertion(+), 97 deletions(-) diff --git a/Source/Settings.xm b/Source/Settings.xm index 79baba8..02a2e94 100644 --- a/Source/Settings.xm +++ b/Source/Settings.xm @@ -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 diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 747ec02..4df5ce9 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -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); } diff --git a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings index e1aa0c2..5475241 100644 --- a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings @@ -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"; @@ -86,7 +83,7 @@ "STOCK_VOLUME_HUD" = "Use iOS stock volume HUD"; "STOCK_VOLUME_HUD_DESC" = ""; -"HIDE_CAST_BUTTON" = "زر "إخفاء الإرسال"; +"HIDE_CAST_BUTTON" = "زر "إخفاء الإرسال" ; "HIDE_CAST_BUTTON_DESC" = "مطلوب إعادة تشغيل التطبيق"; "HIDE_SPONSORBLOCK_BUTTON" = "Hide iSponsorBlock button in the Navigation bar"; diff --git a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings index f0ccd22..4040f99 100644 --- a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings @@ -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"; diff --git a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings index f8836bf..1931163 100644 --- a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings @@ -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"; diff --git a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings index 75ddb05..5b79024 100644 --- a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings @@ -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"; diff --git a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings index 58bb3c7..5a4c3dd 100644 --- a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings @@ -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"; diff --git a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings index 17f38b4..7d79018 100644 --- a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings @@ -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"; diff --git a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings index 2a01d1b..4490690 100644 --- a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings @@ -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";