mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-05-25 10:04:10 +02:00
@@ -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)
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user