Skip to content

Instantly share code, notes, and snippets.

@Mabdelwanis
Forked from pookjw/QRCodeURLScheme.x
Created November 30, 2023 22:26
Show Gist options
  • Select an option

  • Save Mabdelwanis/ec0d02f9840ff90c2250e99fdcf2778c to your computer and use it in GitHub Desktop.

Select an option

Save Mabdelwanis/ec0d02f9840ff90c2250e99fdcf2778c to your computer and use it in GitHub Desktop.
#import <UIKit/UIKit.h>
@interface _TtC4Toss11AppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options;
@end
@interface _TtC9KakaoTalk17TalkSceneDelegate
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts;
@end
@interface NaverSearchAppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options;
@end
%hook _TtC4Toss11AppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
NSLog(@"%@", url.absoluteString);
return %orig(app, url, options);
}
%end
%hook _TtC9KakaoTalk17TalkSceneDelegate
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts {
NSLog(@"%@", URLContexts.allObjects.firstObject.URL.absoluteString);
%orig(scene, URLContexts);
}
%end
%hook NaverSearchAppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
NSLog(@"%@", url.absoluteString);
return %orig(app, url, options);
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment