Remove YTUnShorts

This commit is contained in:
Bryce Hackel
2024-07-06 22:54:45 -07:00
parent 71cde24094
commit 44075f5bec
15 changed files with 1 additions and 60 deletions

View File

@@ -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.

View File

@@ -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"),

View File

@@ -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;

View File

@@ -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.";

View File

@@ -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.";

View File

@@ -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.";

View File

@@ -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.";

View File

@@ -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" = "コミュニティを非表示にします。アプリの再起動が必要です。";

View File

@@ -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.";

View File

@@ -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.";

View File

@@ -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.";

View File

@@ -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.";

View File

@@ -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.";

View File

@@ -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.";

View File

@@ -110,9 +110,6 @@
"ENABLE_FLEX" = "啟用 FLEX不建議使用";
"ENABLE_FLEX_DESC" = "如果不知道這是什麼,請勿啟用";
"UN_SHORTS" = "隱藏 ShortsYTUnShorts";
"UN_SHORTS_DESC" = "瀏覽影片時隱藏 Shorts";
"HIDE_COMMUNITY_POSTS" = "隱藏社群貼文";
"HIDE_COMMUNITY_POSTS_DESC" = "重新啟動應用程式以套用變更。";