diff --git a/README.md b/README.md index ecd068b..1e512e0 100644 --- a/README.md +++ b/README.md @@ -166,8 +166,6 @@ 10. **YTNoTracking**: An iOS YouTube Tweak that disables Tracking Parameters in the YouTube App. -11. **YTUnShorts**: Remove Shorts from YouTube app's feed. - 12. **YTNoCheckLocalNetWor**k: Blocks the Local Network permission popup in YouTube. 13. **BigYTMiniPlayer**: Jailbreak tweak that makes the miniplayer in youtube easier to see. diff --git a/Source/Settings.xm b/Source/Settings.xm index 47f142b..e1f6521 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(@"UN_SHORTS"), LOC(@"UN_SHORTS_DESC"), @"UnShorts_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"), diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 78a3be3..81280e8 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -410,31 +410,11 @@ BOOL isTabSelected = NO; %end %end -// YTUnShorts - https://github.com/PoomSmart/YTUnShorts +// Hide Community Posts - @michael-winay & @arichorn %hook YTIElementRenderer - static NSData *cellDividerData = nil; - - (NSData *)elementData { NSString *description = [self description]; - - if (IsEnabled(@"UnShorts_enabled")) { - if ([description containsString:@"cell_divider"]) { - if (!cellDividerData) cellDividerData = %orig; - return cellDividerData; - } - - BOOL hasShorts = ([description containsString:@"shorts_shelf.eml"] || - [description containsString:@"shorts_video_cell.eml"] || - [description containsString:@"6Shorts"]) && - ![description containsString:@"history*"]; - BOOL hasShortsInHistory = [description containsString:@"compact_video.eml"] && - [description containsString:@"youtube_shorts_"]; - - if (hasShorts || hasShortsInHistory) return cellDividerData; - } - -// Hide Community Posts - @michael-winay & @arichorn if (IsEnabled(@"hideCommunityPosts_enabled")) { if ([description containsString:@"post_base_wrapper.eml"]) { return nil; diff --git a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings index 1e363b1..5f78f54 100644 --- a/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ar.lproj/Localizable.strings @@ -109,9 +109,6 @@ "ENABLE_FLEX" = "تمكين FLEX"; "ENABLE_FLEX_DESC" = "تمكين FLEX للتصحيح (غير مستحسن). اترك هذا إلا إذا كنت تعرف ما تفعله"; -"UN_SHORTS" = "Hide Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed."; - "HIDE_COMMUNITY_POSTS" = "Hide community posts"; "HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; diff --git a/lang/YTLitePlus.bundle/de.lproj/Localizable.strings b/lang/YTLitePlus.bundle/de.lproj/Localizable.strings index a9524c8..2f2054e 100644 --- a/lang/YTLitePlus.bundle/de.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/de.lproj/Localizable.strings @@ -109,9 +109,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."; -"UN_SHORTS" = "Shorts ausblenden (YTUnShorts)"; -"UN_SHORTS_DESC" = "Entferne die Shorts aus dem YouTube-Feed."; - "HIDE_COMMUNITY_POSTS" = "Community-Beiträge ausblenden"; "HIDE_COMMUNITY_POSTS_DESC" = "Versteckt die Community-Beiträge. 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 89f4f33..e7b345b 100644 --- a/lang/YTLitePlus.bundle/en.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/en.lproj/Localizable.strings @@ -109,9 +109,6 @@ "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"UN_SHORTS" = "Hide Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed."; - "HIDE_COMMUNITY_POSTS" = "Hide community posts"; "HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; diff --git a/lang/YTLitePlus.bundle/es.lproj/Localizable.strings b/lang/YTLitePlus.bundle/es.lproj/Localizable.strings index bd233d5..ce8ca3e 100644 --- a/lang/YTLitePlus.bundle/es.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/es.lproj/Localizable.strings @@ -109,9 +109,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"; -"UN_SHORTS" = "Ocultar Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Quitar los Shorts de YouTube"; - "HIDE_COMMUNITY_POSTS" = "Ocultar publicaciones de la comunidad"; "HIDE_COMMUNITY_POSTS_DESC" = "Oculta las publicaciones de la comunidad. Es necesario reiniciar la aplicación."; diff --git a/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings index f2e15cf..9a76aa7 100644 --- a/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ja.lproj/Localizable.strings @@ -109,9 +109,6 @@ "ENABLE_FLEX" = "FLEXを有効化"; "ENABLE_FLEX_DESC" = "デバッグ用のFLEXを有効化します(推奨しません) \n何をやっているのか分からない場合はオフにしてください。"; -"UN_SHORTS" = "ショートを非表示 (YTUnShorts)"; -"UN_SHORTS_DESC" = "YouTubeフィードからショート動画を非表示にします。"; - "HIDE_COMMUNITY_POSTS" = "コミュニティを非表示"; "HIDE_COMMUNITY_POSTS_DESC" = "コミュニティを非表示にします。アプリの再起動が必要です。"; diff --git a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings index 3e7ac81..66649b1 100644 --- a/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/pt.lproj/Localizable.strings @@ -109,9 +109,6 @@ "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"UN_SHORTS" = "Hide Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed."; - "HIDE_COMMUNITY_POSTS" = "Hide community posts"; "HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; diff --git a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings index 7fb87f7..f3ae9be 100644 --- a/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ro.lproj/Localizable.strings @@ -109,9 +109,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."; -"UN_SHORTS" = "Ascunde Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Ascunde Shorts din feed-ul YouTube."; - "HIDE_COMMUNITY_POSTS" = "Ascunde posturi Comunitate"; "HIDE_COMMUNITY_POSTS_DESC" = "Ascunde posturile tip Comunitate. Este necesară repornirea aplicației."; diff --git a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings index 61af121..44237fc 100644 --- a/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/ru.lproj/Localizable.strings @@ -109,9 +109,6 @@ "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"UN_SHORTS" = "Hide Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed."; - "HIDE_COMMUNITY_POSTS" = "Hide community posts"; "HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; diff --git a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings index 77a555a..3112ff0 100644 --- a/lang/YTLitePlus.bundle/template.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/template.lproj/Localizable.strings @@ -124,9 +124,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."; -"UN_SHORTS" = "Hide Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed."; - "HIDE_COMMUNITY_POSTS" = "Hide community posts"; "HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; diff --git a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings index c06693e..cef4caa 100644 --- a/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/tr.lproj/Localizable.strings @@ -109,9 +109,6 @@ "ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; -"UN_SHORTS" = "Hide Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed."; - "HIDE_COMMUNITY_POSTS" = "Hide community posts"; "HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; diff --git a/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings b/lang/YTLitePlus.bundle/vi.lproj/Localizable.strings index 470084b..302697f 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."; -"UN_SHORTS" = "Hide Shorts (YTUnShorts)"; -"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed."; - "HIDE_COMMUNITY_POSTS" = "Hide community posts"; "HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required."; diff --git a/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings b/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings index 5e9bbd5..c4d5f24 100644 --- a/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings +++ b/lang/YTLitePlus.bundle/zh_TW.lproj/Localizable.strings @@ -110,9 +110,6 @@ "ENABLE_FLEX" = "啟用 FLEX(不建議使用)"; "ENABLE_FLEX_DESC" = "如果不知道這是什麼,請勿啟用"; -"UN_SHORTS" = "隱藏 Shorts(YTUnShorts)"; -"UN_SHORTS_DESC" = "瀏覽影片時隱藏 Shorts"; - "HIDE_COMMUNITY_POSTS" = "隱藏社群貼文"; "HIDE_COMMUNITY_POSTS_DESC" = "重新啟動應用程式以套用變更。";