remove duplicate function (Hide Shorts Cells)

This commit is contained in:
arichornlover 2023-12-26 19:08:42 -06:00 committed by GitHub
parent 53a50504b2
commit 091332073a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -825,11 +825,8 @@ static void replaceTab(YTIGuideResponse *response) {
// Hide Shorts Cells - @PoomSmart & @iCrazeiOS
%hook YTIElementRenderer
- (NSData *)elementData {
NSString *description = [self description];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
BOOL hideShortsCellsEnabled = [defaults boolForKey:@"hideShortsCells_enabled"];
BOOL hideShortsCellsEnableduYou = [defaults boolForKey:@"removeShortsCell"];
if (hideShortsCellsEnabled || hideShortsCellsEnableduYou) {
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeShortsCell"]) {
NSString *description = [self description];
if ([description containsString:@"shorts_shelf.eml"] ||
[description containsString:@"#shorts"] ||
[description containsString:@"shorts_video_cell.eml"] ||