Skip to content

Instantly share code, notes, and snippets.

@bored-engineer
Created December 12, 2011 22:37
Show Gist options
  • Select an option

  • Save bored-engineer/1469472 to your computer and use it in GitHub Desktop.

Select an option

Save bored-engineer/1469472 to your computer and use it in GitHub Desktop.
Hook webViewDidFinishLoad via theos
#import <UIKit/UIKit.h>
%hook UIWebBrowserView
- (void)webViewDidFinishLoad: (UIWebView *)webView{
//NSLog(@"URL = %@",[webView stringByEvaluatingJavaScriptFromString:@"window.location"]);
%log;
%orig;
}
%end
@MartinPham

Copy link
Copy Markdown

it's changed, try

- (void)webView:(UIWebView *)webView didFinishLoadForFrame:(id)arg2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment