feat: Hide Repost Button in reels tab

Closes #2
This commit is contained in:
faroukbmiled
2026-04-10 01:52:50 +01:00
parent f2f310fce5
commit 89c5a25512
3 changed files with 13 additions and 1 deletions
+1
View File
@@ -54,6 +54,7 @@ A feature-rich iOS tweak for Instagram, forked from [SCInsta](https://github.com
- Confirm reel refresh
- Unlock password-locked reels **\***
- Hide reels header
- Hide repost button in reels **\***
- Hide reels blend button
- Disable scrolling reels
- Prevent doom scrolling (limit maximum viewable reels)
+2 -1
View File
@@ -97,7 +97,8 @@
@{
@"header": @"Hiding",
@"rows": @[
[SCISetting switchCellWithTitle:@"Hide reels header" subtitle:@"Hides the top navigation bar when watching reels" defaultsKey:@"hide_reels_header"]
[SCISetting switchCellWithTitle:@"Hide reels header" subtitle:@"Hides the top navigation bar when watching reels" defaultsKey:@"hide_reels_header"],
[SCISetting switchCellWithTitle:@"Hide repost button" subtitle:@"Hides the repost button on the reels sidebar" defaultsKey:@"hide_reels_repost"]
]
},
@{
+10
View File
@@ -692,6 +692,7 @@ shouldPersistLastBugReportId:(id)arg6
}
- (void)_didTapRepostButton {
if ([SCIUtils getBoolPref:@"hide_reels_repost"]) return;
if ([SCIUtils getBoolPref:@"repost_confirm"]) {
[SCIUtils showConfirmation:^(void) { %orig; }];
}
@@ -701,11 +702,20 @@ shouldPersistLastBugReportId:(id)arg6
}
- (void)_didLongPressRepostButton:(id)arg1 {
if ([SCIUtils getBoolPref:@"hide_reels_repost"]) return;
if ([SCIUtils getBoolPref:@"repost_confirm"]) return;
%orig;
}
%end
// Hide repost button at the view model level so IG's layout handles the gap
%hook IGSundialViewerUFIViewModel
- (BOOL)shouldShowRepostButton {
if ([SCIUtils getBoolPref:@"hide_reels_repost"]) return NO;
return %orig;
}
%end
/////////////////////////////////////////////////////////////////////////////
// FLEX explorer gesture handler