My Tweak.xm : #include <substrate.h>
%hook BetternetUser
-(void) setIsPremium:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
%hook BetternetUser
-(bool) isPremium {
return TRUE;
}
%end
%hook AppDelegate
-(void)applicationDidBecomeActive:(id)arg {
UIAlertView *credits = [[uIAlertView alloc] initWithTitle:@"Welcome"
message:@"Hacked by KFCzZz for iOSGods.com"
delegate:self
cancelButtonTitle:@"Close"
otherButtonTitles:@"Visit Us", nil];
[credits show];
[credits release];
return %orig;
}
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
if([button isEqualToString:@"Visit Us"])
{
[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.iOSGods.com/]];
}
}
%end