Permalink
Browse files

Initial Commit. Version 1.0.0.

  • Loading branch information...
0 parents commit 55d4bce27d73e714394dadc4d56ff076b75f5d97 @ahmadhashemi committed Aug 12, 2016
Showing with 49 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +1 −0 LongStories.plist
  3. +9 −0 Makefile
  4. +28 −0 Tweak.xm
  5. +9 −0 control
@@ -0,0 +1,2 @@
+/.theos
+/packages
@@ -0,0 +1 @@
+{ Filter = { Bundles = ( "com.burbn.instagram" ); }; }
@@ -0,0 +1,9 @@
+include $(THEOS)/makefiles/common.mk
+
+TWEAK_NAME = LongStories
+LongStories_FILES = Tweak.xm
+
+include $(THEOS_MAKE_PATH)/tweak.mk
+
+after-install::
+ install.exec "killall -9 Instagram"
@@ -0,0 +1,28 @@
+%hook IGInlineGalleryPHDataSource
+
++ (id)dataSourceWithItemsSinceDate:(NSDate *)date {
+
+ NSTimeInterval interval = [[[NSDate alloc] init] timeIntervalSinceDate:date];
+ long longInterval = (long)interval;
+
+ if (longInterval == 86400) { // setting 24 hours limit is ordered
+ date = [NSDate dateWithTimeIntervalSince1970:0];
+ }
+
+ return %orig(date);
+}
+
+%end;
+
+%hook IGAlbumGalleryViewController
+
+-(void)viewDidLoad {
+
+ %orig;
+
+ UILabel *titleLabel = MSHookIvar<UILabel *>(self, "_titleLabel");
+ [titleLabel setText:@"Gallery"];
+
+}
+
+%end
@@ -0,0 +1,9 @@
+Package: com.ahmad.longstories
+Name: LongStories
+Depends: mobilesubstrate
+Version: 1.0.0
+Architecture: iphoneos-arm
+Description: Remove Instagram Stories 24 hours limit while selecting media from gallery
+Maintainer: Ahmad
+Author: Ahmad
+Section: Tweaks

0 comments on commit 55d4bce

Please sign in to comment.