diff --git a/src/Features/General/HideTrendingSearches.x b/src/Features/General/HideTrendingSearches.x index d6d7eaf..12b69ab 100644 --- a/src/Features/General/HideTrendingSearches.x +++ b/src/Features/General/HideTrendingSearches.x @@ -1,9 +1,8 @@ #import "../../InstagramHeaders.h" #import "../../Manager.h" -// !! Bug: Currently hides all pill icons within the Instagram app. Instead, only hide "topic" pills. -%hook IGDSSegmentedPillControl -+ (id)newWithStyle:(id)arg1 { +%hook IGKeywordSearchModel +- (id)initWithPk:(id)arg1 name:(id)arg2 score:(id)arg3 subtitle:(id)arg4 isPopular:(BOOL)arg5 isMetaAISuggestion:(BOOL)arg6 { if ([BHIManager hideTrendingSearches]) { NSLog(@"[BHInsta] Hiding trending searches"); @@ -12,4 +11,26 @@ return %orig; } -%end \ No newline at end of file +- (id)initWithDictionary:(id)arg1 { + if ([BHIManager hideTrendingSearches]) { + NSLog(@"[BHInsta] Hiding trending searches"); + + return nil; + } + + return %orig; +} +%end + +// Maybe try something like this to hide reccomended search text? +/* %hook IGAnimatablePlaceholderModel +- (id)initWithId:(id)arg1 placeholderText:(id)arg2 placeholderName:(id)arg3 placeholderType:(id)arg4 { + if ([BHIManager hideTrendingSearches]) { + NSLog(@"[BHInsta] Hiding trending searches"); + + return nil; + } + + return %orig; +} +%end */ \ No newline at end of file