Skip to content

Commit c9caccd

Browse files
committed
feat: disable instants creation
1 parent 2af4663 commit c9caccd

4 files changed

Lines changed: 61 additions & 57 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ A feature-rich tweak for Instagram on iOS!\
7171
- Disable view-once limitations
7272
- Disable screenshot detection
7373
- Disable story seen receipt
74+
- Disable instants creation
7475

7576
### Navigation
7677
- Modify tab bar icon order

src/Features/Experimental/EnableQuicksnap.x_

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#import "../../Utils.h"
2+
3+
#define QUICKSNAPENABLED(orig) return [SCIUtils getBoolPref:@"disable_instants_creation"] ? false : orig;
4+
5+
// Demangled name: IGQuickSnapExperimentation.IGQuickSnapExperimentationHelper
6+
%hook _TtC26IGQuickSnapExperimentation32IGQuickSnapExperimentationHelper
7+
+ (_Bool)isQuicksnapEnabled:(id)enabled {
8+
QUICKSNAPENABLED(%orig);
9+
}
10+
+ (_Bool)isQuicksnapEnabledInFeed:(id)feed {
11+
QUICKSNAPENABLED(%orig);
12+
}
13+
+ (_Bool)isQuicksnapEnabledInInbox:(id)inbox {
14+
QUICKSNAPENABLED(%orig);
15+
}
16+
+ (_Bool)isQuicksnapEnabledInStories:(id)stories {
17+
QUICKSNAPENABLED(%orig);
18+
}
19+
+ (_Bool)isQuicksnapEnabledInNotesTray:(id)tray {
20+
QUICKSNAPENABLED(%orig);
21+
}
22+
+ (_Bool)isQuicksnapEnabledInNotesTrayWithPeek:(id)peek {
23+
QUICKSNAPENABLED(%orig);
24+
}
25+
+ (_Bool)isQuicksnapEnabledInNotesTrayWithPog:(id)pog {
26+
QUICKSNAPENABLED(%orig);
27+
}
28+
+ (_Bool)isQuicksnapNotesTrayEmptyPogEnabled:(id)enabled {
29+
QUICKSNAPENABLED(%orig);
30+
}
31+
// + (_Bool)isStoriesSpringEnabled:(id)enabled {
32+
// return true;
33+
// }
34+
// + (_Bool)shouldEnableScreenshotBlocking:(id)blocking {
35+
// return false;
36+
// }
37+
// + (_Bool)areFiltersEnabled:(id)enabled {
38+
// return true;
39+
// }
40+
// + (_Bool)isBottomsheetCustomAudienceEnabled:(id)enabled {
41+
// return true;
42+
// }
43+
// + (_Bool)isVideoCaptureEnabled:(id)enabled {
44+
// return true;
45+
// }
46+
%end
47+
48+
// %hook IGDirectNotesTrayRowCell
49+
// - (_Bool)isQuicksnapPeekVisible {
50+
// return true;
51+
// }
52+
// %end
53+
54+
// %hook IGDirectNotesTrayRowSectionController
55+
// - (_Bool)isQuicksnapPeekVisible {
56+
// return true;
57+
// }
58+
// %end

src/Settings/TweakSettings.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ + (NSArray *)sections {
132132
[SCISetting switchCellWithTitle:@"Unlimited replay of visual messages" subtitle:@"Replays direct visual messages normal/once stories unlimited times (toggle with image check icon)" defaultsKey:@"unlimited_replay"],
133133
[SCISetting switchCellWithTitle:@"Disable view-once limitations" subtitle:@"Makes view-once messages behave like normal visual messages (loopable/pauseable)" defaultsKey:@"disable_view_once_limitations"],
134134
[SCISetting switchCellWithTitle:@"Disable screenshot detection" subtitle:@"Removes the screenshot-prevention features for visual messages in DMs" defaultsKey:@"remove_screenshot_alert"],
135-
[SCISetting switchCellWithTitle:@"Disable story seen receipt" subtitle:@"Hides the notification for others when you view their story" defaultsKey:@"no_seen_receipt"]
135+
[SCISetting switchCellWithTitle:@"Disable story seen receipt" subtitle:@"Hides the notification for others when you view their story" defaultsKey:@"no_seen_receipt"],
136+
[SCISetting switchCellWithTitle:@"Disable instants creation" subtitle:@"Hides the functionality to create/send instants" defaultsKey:@"disable_instants_creation" requiresRestart:YES]
136137
]
137138
}]
138139
],

0 commit comments

Comments
 (0)