mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-12 01:00:38 +00:00
Disable Hide Shorts Cells Workaround
It breaks uYouEnhanced even if disabled. This is important for next release.
This commit is contained in:
parent
eb0056e7c6
commit
ed76eef801
1 changed files with 2 additions and 4 deletions
|
|
@ -1219,11 +1219,11 @@ NSData *cellDividerData;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
/*
|
||||||
// Hide Shorts Cells - @PoomSmart, @iCrazeiOS & @Dayanch96
|
// Hide Shorts Cells - @PoomSmart, @iCrazeiOS & @Dayanch96
|
||||||
%hook YTIElementRenderer
|
%hook YTIElementRenderer
|
||||||
- (NSData *)elementData {
|
- (NSData *)elementData {
|
||||||
NSString *description = [self description];
|
NSString *description = [self description];
|
||||||
/*
|
|
||||||
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeShortsCell"]) { // uYou (Hide Shorts Cells)
|
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeShortsCell"]) { // uYou (Hide Shorts Cells)
|
||||||
if ([description containsString:@"shorts_shelf.eml"] || [description containsString:@"#shorts"] || [description containsString:@"shorts_video_cell.eml"] || [description containsString:@"6Shorts"]) {
|
if ([description containsString:@"shorts_shelf.eml"] || [description containsString:@"#shorts"] || [description containsString:@"shorts_video_cell.eml"] || [description containsString:@"6Shorts"]) {
|
||||||
if (![description containsString:@"history*"]) {
|
if (![description containsString:@"history*"]) {
|
||||||
|
|
@ -1232,7 +1232,6 @@ NSData *cellDividerData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
// Hide Community Posts @michael-winay & @arichornlover
|
// Hide Community Posts @michael-winay & @arichornlover
|
||||||
if (IS_ENABLED(@"hideCommunityPosts_enabled")) {
|
if (IS_ENABLED(@"hideCommunityPosts_enabled")) {
|
||||||
if ([description containsString:@"post_base_wrapper.eml"]) {
|
if ([description containsString:@"post_base_wrapper.eml"]) {
|
||||||
|
|
@ -1240,7 +1239,6 @@ NSData *cellDividerData;
|
||||||
return cellDividerData;
|
return cellDividerData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
// etc. - @Dayanch96
|
// etc. - @Dayanch96
|
||||||
BOOL hasShorts = ([description containsString:@"shorts_shelf.eml"] || [description containsString:@"shorts_video_cell.eml"] || [description containsString:@"6Shorts"]) && ![description containsString:@"history*"];
|
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_"];
|
BOOL hasShortsInHistory = [description containsString:@"compact_video.eml"] && [description containsString:@"youtube_shorts_"];
|
||||||
|
|
@ -1248,8 +1246,8 @@ NSData *cellDividerData;
|
||||||
if (hasShorts || hasShortsInHistory) return cellDividerData;
|
if (hasShorts || hasShortsInHistory) return cellDividerData;
|
||||||
return %orig;
|
return %orig;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
%end
|
%end
|
||||||
|
*/
|
||||||
|
|
||||||
// Red Subscribe Button - 17.33.2 and up - @arichornlover
|
// Red Subscribe Button - 17.33.2 and up - @arichornlover
|
||||||
%hook ELMContainerNode
|
%hook ELMContainerNode
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue