mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-31 07:58:36 +00:00
remove duplicate function (Hide Shorts Cells)
This commit is contained in:
parent
53a50504b2
commit
091332073a
1 changed files with 2 additions and 5 deletions
|
|
@ -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"] ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue