mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-21 18:48:45 -04:00
Remove YTUnShorts
This commit is contained in:
@@ -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.
|
||||
|
@@ -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"),
|
||||
|
@@ -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;
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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" = "コミュニティを非表示にします。アプリの再起動が必要です。";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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.";
|
||||
|
||||
|
@@ -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" = "重新啟動應用程式以套用變更。";
|
||||
|
||||
|
Reference in New Issue
Block a user