Skip to content

Commit

Permalink
fix: properly remove suggested reels from feed
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed Apr 6, 2024
1 parent c5c69a0 commit e3f7710
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Features/Feed/HideSuggestedReels.x
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@
#import "../../Manager.h"

// Remove suggested reels (carousel, under suggested posts in feed)
%hook IGMainFeedStoryTrayActionDelegate
- (id)initWithMainFeedContext:(id)arg1 {
%hook IGFeedScrollableClipsSectionController
- (id)initWithUserSession:(id)arg1
analyticsModule:(id)arg2
sourceModule:(id)arg3
config:(id)arg4
forceDarkMode:(BOOL)arg5
netegoImpressionStrategy:(id)arg6 {
if ([BHIManager removeSuggestedReels]) {
NSLog(@"[BHInsta] Hiding suggested reels");

return nil;
}

return %orig;
}
%end

0 comments on commit e3f7710

Please sign in to comment.