├── obj ├── .stamp ├── Tweak.xm.5b99de89.o ├── Tweak.xm.e8ead598.o └── chromeswipeback.dylib ├── theos ├── chromeswipeback.plist ├── com.twodayslate.chromeswipeback_0.0.1-1_iphoneos-arm.deb ├── debs ├── com.twodayslate.chromeswipeback_1.0-1_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-10_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-11_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-12_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-13_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-14_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-15_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-16_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-17_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-18_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-19_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-20_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-21_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-22_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-23_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-24_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-25_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-26_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-27_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-28_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-29_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-2_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-30_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-31_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-3_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-4_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-5_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-6_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-7_iphoneos-arm.deb ├── com.twodayslate.chromeswipeback_0.0.1-8_iphoneos-arm.deb └── com.twodayslate.chromeswipeback_0.0.1-9_iphoneos-arm.deb ├── control ├── _ └── DEBIAN │ └── control ├── Makefile └── Tweak.xm /obj/.stamp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /theos: -------------------------------------------------------------------------------- 1 | /opt/theos -------------------------------------------------------------------------------- /chromeswipeback.plist: -------------------------------------------------------------------------------- 1 | { Filter = { Bundles = ( "com.google.chrome.ios" ); }; } 2 | -------------------------------------------------------------------------------- /obj/Tweak.xm.5b99de89.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/obj/Tweak.xm.5b99de89.o -------------------------------------------------------------------------------- /obj/Tweak.xm.e8ead598.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/obj/Tweak.xm.e8ead598.o -------------------------------------------------------------------------------- /obj/chromeswipeback.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/obj/chromeswipeback.dylib -------------------------------------------------------------------------------- /com.twodayslate.chromeswipeback_0.0.1-1_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/com.twodayslate.chromeswipeback_0.0.1-1_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_1.0-1_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_1.0-1_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-10_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-10_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-11_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-11_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-12_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-12_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-13_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-13_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-14_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-14_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-15_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-15_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-16_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-16_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-17_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-17_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-18_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-18_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-19_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-19_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-20_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-20_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-21_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-21_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-22_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-22_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-23_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-23_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-24_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-24_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-25_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-25_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-26_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-26_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-27_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-27_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-28_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-28_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-29_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-29_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-2_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-2_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-30_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-30_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-31_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-31_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-3_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-3_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-4_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-4_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-5_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-5_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-6_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-6_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-7_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-7_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-8_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-8_iphoneos-arm.deb -------------------------------------------------------------------------------- /debs/com.twodayslate.chromeswipeback_0.0.1-9_iphoneos-arm.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twodayslate/browserswipe/master/debs/com.twodayslate.chromeswipeback_0.0.1-9_iphoneos-arm.deb -------------------------------------------------------------------------------- /control: -------------------------------------------------------------------------------- 1 | Package: org.thebigboss.browserswipe 2 | Name: browserswipe 3 | Depends: mobilesubstrate 4 | Version: 1.0 5 | Architecture: iphoneos-arm 6 | Description: Swipe to go back in Google Chrome! 7 | Maintainer: twodayslate 8 | Author: twodayslate 9 | Section: Tweaks 10 | -------------------------------------------------------------------------------- /_/DEBIAN/control: -------------------------------------------------------------------------------- 1 | Package: org.thebigboss.browserswipe 2 | Name: browserswipe 3 | Depends: mobilesubstrate 4 | Architecture: iphoneos-arm 5 | Description: Swipe to go back in Google Chrome! 6 | Maintainer: twodayslate 7 | Author: twodayslate 8 | Section: Tweaks 9 | Version: 1.0-2 10 | Installed-Size: 68 11 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | THEOS_DEVICE_IP ?= 192.168.1.24 2 | THEOS_DEVICE_PORT ?= 22 3 | 4 | THEOS_PACKAGE_DIR_NAME = debs 5 | TARGET := iphone:clang 6 | ARCHS := armv7 arm64 7 | 8 | include theos/makefiles/common.mk 9 | 10 | TWEAK_NAME = browserswipe 11 | browserswipe_FILES = Tweak.xm 12 | browserswipe_ARCHS = armv7 arm64 13 | 14 | include $(THEOS_MAKE_PATH)/tweak.mk 15 | 16 | after-install:: 17 | install.exec "killall -9 Chrome" 18 | -------------------------------------------------------------------------------- /Tweak.xm: -------------------------------------------------------------------------------- 1 | @interface SideSwipeGestureRecognizer : UIPanGestureRecognizer { 2 | unsigned direction_; 3 | float swipeEdge_; 4 | } 5 | @property (assign,nonatomic) float swipeEdge; 6 | @property (assign,nonatomic) unsigned direction; 7 | -(void)setDirection:(unsigned)arg1; 8 | -(void)setSwipeEdge:(float)arg1; 9 | @end 10 | 11 | @interface Tab 12 | -(BOOL)canGoBack; 13 | -(BOOL)canGoForward; 14 | -(void)goBack; 15 | -(void)goForward; 16 | @end 17 | 18 | @interface TabModel 19 | - (id)currentTab; 20 | @end 21 | 22 | @interface BrowserViewController 23 | - (void)handleiPhoneSwipe:(id)fp8; 24 | - (void)handleiPadSwipe:(id)fp8; 25 | - (id)tabModel; 26 | @end 27 | 28 | %hook BrowserViewController 29 | - (void)handleiPhoneSwipe:(SideSwipeGestureRecognizer *)fp8 { 30 | //%log; 31 | if([fp8 state] == 3) { // 1 = Began, 2 = Changed, 3 = Ended 32 | // NSLog(@"direction = %d", fp8.direction); 33 | // NSLog(@"edge = %f",fp8.swipeEdge); 34 | Tab *curTab = [[self tabModel] currentTab]; 35 | if(fp8.direction == 2) { // right 36 | if([curTab canGoForward]) { 37 | [curTab goForward]; 38 | } 39 | } else if([curTab canGoBack]) { 40 | [curTab goBack]; 41 | } 42 | } 43 | 44 | // direction = 1, edge = 20 => left 45 | //direction = 2, edge = 20 => right 46 | 47 | } 48 | - (void)handleiPadSwipe:(SideSwipeGestureRecognizer *)fp8 { 49 | //%log; 50 | if([fp8 state] == 3) { // 1 = Began, 2 = Changed, 3 = Ended 51 | // NSLog(@"direction = %d", fp8.direction); 52 | // NSLog(@"edge = %f",fp8.swipeEdge); 53 | Tab *curTab = [[self tabModel] currentTab]; 54 | if(fp8.direction == 2) { // right 55 | if([curTab canGoForward]) { 56 | [curTab goForward]; 57 | } 58 | } else if([curTab canGoBack]) { 59 | [curTab goBack]; 60 | } 61 | } 62 | } 63 | %end --------------------------------------------------------------------------------