Skip to content

Instantly share code, notes, and snippets.

View S1ReX's full-sized avatar

Bradley Friedman S1ReX

View GitHub Profile
<script src="http://pastebin.com/embed_js.php?i=Kn4qBXMt"></script>
static BOOL _enabled = YES;
%hook SBAssistantUserUtteranceController
- (BOOL)isCorrectable
{
if (_enabled)
return NO;
else
return %orig;
[UIView animateWithDuration:0.5f animations:^{
8:29 AM <kirb> view.alpha = 1;
8:29 AM <kirb> }];
%hook SBTelephonyManager
-(NSString *)operatorName {
NSDate* date = [NSDate date];
return date;
}
%hook SBTelephonyManager
-(NSString *)operatorName {
NSString *dateString = @"DateGoesHere";
return dateString;
}
@interface SBBulletinBannerItem : NSObject
@end
%hook SBBannerView
-(id)initWithItem:(SBBulletinBannerItem *)item {
UIColor *myColor = [UIColor blueColor];
UIImageView *bannerView = MSHookIvar<UIImageView *>(self, "_bannerView");
bannerView.backgroundColor = underlayView.backgroundColor = myColor;
static UIView *_contentView;
%hook SBAppSwitcherBarView
-(id)initWithFrame {
CGRect viewRect = CGRectMake(0, 0, 100, 100);
UIView *myView = [[UIView alloc] initWithFrame:viewRect];
{_contentView addSubView:myView];
}
- (void)mediaKeyUp:(struct __GSEvent *)fp8 {
if (brightnessMode) {
[[%c(SBBrightnessController) sharedBrightnessController] adjustBacklightLevel:YES];
}
else {
UIView *tableView = MSHookIvar<UIView *>(self, "_tableView");
tableView.frame = CGRectMake(0, 0, 320, 0);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[tableView setFrame: CGRectMake(0, 0, 320, 480)];
[UIView commitAnimations];
@S1ReX
S1ReX / Tweak.xm
Created December 5, 2012 12:46
Code for No Carrier Name
/************************************************
No Operator Name by Bradley Friedman (Sirex_iOS)
Release - 2012
Uploaded to sirex.net16.net
************************************************/
%hook SBTelephonyManager
-(id)operatorName {