From 03690709846965736a7c546eebcf80ae3ba8013e Mon Sep 17 00:00:00 2001 From: Bryce Hackel <34104885+bhackel@users.noreply.github.com> Date: Sat, 6 Jul 2024 23:56:12 -0700 Subject: [PATCH] Remove Hide Community Posts --- Source/Settings.xm | 1 - YTLitePlus.xm | 14 -------------- .../YTLitePlus.bundle/ar.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/de.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/en.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/es.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/fr.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/ja.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/pt.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/ro.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/ru.lproj/Localizable.strings | 3 --- .../template.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/tr.lproj/Localizable.strings | 3 --- .../YTLitePlus.bundle/vi.lproj/Localizable.strings | 3 --- .../zh_TW.lproj/Localizable.strings | 3 --- 15 files changed, 54 deletions(-) diff --git a/Source/Settings.xm b/Source/Settings.xm index 549a8fe..556b318 100644 --- a/Source/Settings.xm +++ b/Source/Settings.xm @@ -343,7 +343,6 @@ static const NSInteger YTLiteSection = 789; BASIC_SWITCH(LOC(@"IPHONE_LAYOUT"), LOC(@"IPHONE_LAYOUT_DESC"), @"iPhoneLayout_enabled"), BASIC_SWITCH(LOC(@"CAST_CONFIRM"), LOC(@"CAST_CONFIRM_DESC"), @"castConfirm_enabled"), BASIC_SWITCH(LOC(@"NEW_MINIPLAYER_STYLE"), LOC(@"NEW_MINIPLAYER_STYLE_DESC"), @"bigYTMiniPlayer_enabled"), - BASIC_SWITCH(LOC(@"HIDE_COMMUNITY_POSTS"), LOC(@"HIDE_COMMUNITY_POSTS_DESC"), @"hideCommunityPosts_enabled"), BASIC_SWITCH(LOC(@"HIDE_CAST_BUTTON"), LOC(@"HIDE_CAST_BUTTON_DESC"), @"hideCastButton_enabled"), BASIC_SWITCH(LOC(@"HIDE_SPONSORBLOCK_BUTTON"), LOC(@"HIDE_SPONSORBLOCK_BUTTON_DESC"), @"hideSponsorBlockButton_enabled"), BASIC_SWITCH(LOC(@"HIDE_HOME_TAB"), LOC(@"HIDE_HOME_TAB_DESC"), @"hideHomeTab_enabled"), diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 687278e..1dc907f 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -410,20 +410,6 @@ BOOL isTabSelected = NO; %end %end -// Hide Community Posts - @michael-winay & @arichorn -%hook YTIElementRenderer -static NSData *cellDividerData = nil; -- (NSData *)elementData { - NSString *description = [self description]; - if (IsEnabled(@"hideCommunityPosts_enabled")) { - if ([description containsString:@"post_base_wrapper.eml"]) { - return nil; - } - } - return %orig; -} -%end - // Seek anywhere gesture - @bhackel %hook YTColdConfig - (BOOL)speedMasterArm2FastForwardWithoutSeekBySliding { diff --git a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings index 018794c..3554836 100644 --- a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "تمكين FLEX"; "ENABLE_FLEX_DESC" = "تمكين FLEX للتصحيح (غير مستحسن). اترك هذا إلا إذا كنت تعرف ما تفعله"; -"HIDE_COMMUNITY_POSTS" = "Hide community posts"; -"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required."; diff --git a/lang/YTLitePlus.bundle/de.lproj/Localizable.strings b/lang/YTLitePlus.bundle/de.lproj/Localizable.strings index dadea22..86a0d6f 100644 --- a/lang/YTLitePlus.bundle/de.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/de.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "FLEX aktivieren"; "ENABLE_FLEX_DESC" = "Aktiviere FLEX zum Debuggen (nicht empfohlen). Lass diese Option deaktiviert, es sei denn, du weißt, was du tust."; -"HIDE_COMMUNITY_POSTS" = "Community-Beiträge ausblenden"; -"HIDE_COMMUNITY_POSTS_DESC" = "Versteckt die Community-Beiträge. Ein Neustart der App ist erforderlich."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "App-Version-Spoofer aktivieren (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Aktiviere dies, um den Version-Spoofer (Lite) zu verwenden, und wähle unten deine bevorzugte Version aus. Ein Neustart der App ist erforderlich."; diff --git a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings index 6488d53..53a89d6 100644 --- a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"HIDE_COMMUNITY_POSTS" = "Hide community posts"; -"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required."; diff --git a/lang/YTLitePlus.bundle/es.lproj/Localizable.strings b/lang/YTLitePlus.bundle/es.lproj/Localizable.strings index 22c1f59..54b7b8e 100644 --- a/lang/YTLitePlus.bundle/es.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/es.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "Habilitar FLEX"; "ENABLE_FLEX_DESC" = "Habilitar FLEX para depuración (no recomendado). Déjelo desactivado a menos que sepa lo que está haciendo"; -"HIDE_COMMUNITY_POSTS" = "Ocultar publicaciones de la comunidad"; -"HIDE_COMMUNITY_POSTS_DESC" = "Oculta las publicaciones de la comunidad. Es necesario reiniciar la aplicación."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Activar App Version Spoofer (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Active esta opción para utilizar Version Spoofer (Lite) y seleccione su versión preferida a continuación. Es necesario reiniciar la aplicación."; diff --git a/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings b/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings index 0faf7e5..359a1c2 100644 --- a/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/fr.lproj/Localizable.strings @@ -112,9 +112,6 @@ "UN_SHORTS" = "Masquer les Shorts (YTUnShorts)" ; "UN_SHORTS_DESC" = "Supprimer les Shorts du feed de YouTube" ; -"HIDE_COMMUNITY_POSTS" = "Masquer les messages de la communauté"; -"HIDE_COMMUNITY_POSTS_DESC" = "Masque les messages de la communauté. Le redémarrage de l'application est nécessaire."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Activer le Spoofer de Version de l'Application (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Activez cette option pour utiliser le Spoofer de Version de l'Application (Lite) et sélectionnez votre version préférée ci-dessous. Un redémarrage de l'application est requis."; diff --git a/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings index 5939592..4f43bb6 100644 --- a/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "FLEXを有効化"; "ENABLE_FLEX_DESC" = "デバッグ用のFLEXを有効化します(推奨しません) \n何をやっているのか分からない場合はオフにしてください。"; -"HIDE_COMMUNITY_POSTS" = "コミュニティを非表示"; -"HIDE_COMMUNITY_POSTS_DESC" = "コミュニティを非表示にします。アプリの再起動が必要です。"; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "アプリのバージョン偽装(Lite)を有効にする"; "APP_VERSION_SPOOFER_LITE_DESC" = "バージョン偽装(Lite)を使用するにはこれを有効にし、以下でお好みのバージョンを選択してください。アプリの再起動が必要です。"; diff --git a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings index fe10e31..4be561e 100644 --- a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"HIDE_COMMUNITY_POSTS" = "Hide community posts"; -"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required."; diff --git a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings index 487c6be..bbb3df3 100644 --- a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "Activare FLEX"; "ENABLE_FLEX_DESC" = "Activați FLEX pentru depanare (nerecomandat). Lăsați această opțiune dezactivată dacă nu știți ce faceți."; -"HIDE_COMMUNITY_POSTS" = "Ascunde posturi Comunitate"; -"HIDE_COMMUNITY_POSTS_DESC" = "Ascunde posturile tip Comunitate. Este necesară repornirea aplicației."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Activare Spoofer Versiune Aplicație (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Activați pentru a utiliza Version Spoofer (Lite) și alegeți versiunea preferată. Este necesară repornirea aplicației."; diff --git a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings index 8d35f2b..5afd842 100644 --- a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"HIDE_COMMUNITY_POSTS" = "Hide community posts"; -"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required."; diff --git a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings index 2ba02c6..74c1c11 100644 --- a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings @@ -121,9 +121,6 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"HIDE_COMMUNITY_POSTS" = "Hide community posts"; -"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required."; diff --git a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings index ef389f6..0e2cdc7 100644 --- a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings @@ -106,9 +106,6 @@ "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"HIDE_COMMUNITY_POSTS" = "Hide community posts"; -"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)"; "APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required."; diff --git a/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings b/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings index 302697f..94d2ced 100644 --- a/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings @@ -130,9 +130,6 @@ "ENABLE_FLEX" = "Kích hoạt FLEX"; "ENABLE_FLEX_DESC" = "Bật FLEX để gỡ lỗi (không khuyến nghị). Bỏ qua điều này trừ khi bạn biết những gì bạn đang làm."; -"HIDE_COMMUNITY_POSTS" = "Hide community posts"; -"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; - "FIX_GOOGLE_SIGNIN" = "Sửa lỗi Đăng nhập bằng Google (chỉ dành cho người dùng TrollStore)"; "FIX_GOOGLE_SIGNIN_DESC" = "Chỉ bật tùy chọn này khi bạn không thể đăng nhập bằng tài khoản Google của mình và ứng dụng đã được cài đặt qua TrollStore. Nếu bạn có thể đăng nhập bình thường, hãy tắt nó đi. Khởi động lại ứng dụng là bắt buộc."; diff --git a/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings b/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings index 4987ecc..6065158 100644 --- a/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings @@ -107,9 +107,6 @@ "ENABLE_FLEX" = "啟用 FLEX(不建議使用)"; "ENABLE_FLEX_DESC" = "如果不知道這是什麼,請勿啟用"; -"HIDE_COMMUNITY_POSTS" = "隱藏社群貼文"; -"HIDE_COMMUNITY_POSTS_DESC" = "重新啟動應用程式以套用變更。"; - // Version Spoofer "APP_VERSION_SPOOFER_LITE" = "改變應用程式版本"; "APP_VERSION_SPOOFER_LITE_DESC" = "請在底下選擇版本。重新啟動應用程式以套用變更。";