Advertisement
Guest User

fake twitter followers (real old tweak.xm)

a guest
Jun 9th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define PLIST_PATH @"/var/mobile/Library/Preferences/com.i0stweak3r.faketwitterfollowers.plist"
  2.  
  3. static NSMutableDictionary *prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:PLIST_PATH];
  4.  
  5. %hook T1ProfileUserInfoView
  6. -(void) setFollowerCount:(id)arg1 {
  7.  
  8.     NSString *textV = [prefs objectForKey:@"text"];
  9.  
  10.     BOOL Enabled = [[prefs objectForKey:@"enabled"] boolValue];
  11.  
  12.  
  13.  
  14.  
  15. /**
  16. If the string is not a valid number, then myNumber will be nil. If it is a valid number, then you now have all of the NSNumber goodness to figure out what kind of number it actually is.
  17. **/
  18.  
  19. if([textV isEqualToString:@""] || textV == nil ||   !Enabled)
  20. {
  21. return %orig;
  22.   }
  23.    
  24.     else if (Enabled) {
  25. NSNumberFormatter *f = [[NSNumberFormatter alloc] init];
  26. f.numberStyle = NSNumberFormatterDecimalStyle;
  27. NSNumber *myNumber = [f numberFromString:textV];
  28.  
  29.         arg1 = myNumber;
  30. /*
  31.  [NSNumber  numberWithFloat: followers];
  32. not needed- used above code to ensure correct number format was passed.
  33. */
  34.       return  %orig(arg1);
  35.     }
  36.  
  37. }
  38.  
  39. -(void) setFollowingCount:(id)arg1 {
  40.  
  41.     NSString *textV = [prefs objectForKey:@"text2"];
  42.  
  43.     BOOL Enabled = [[prefs objectForKey:@"enabled"] boolValue];
  44.  
  45.  
  46.  
  47.  
  48. /**
  49. If the string is not a valid number, then myNumber will be nil. If it is a valid number, then you now have all of the NSNumber goodness to figure out what kind of number it actually is.
  50. **/
  51.  
  52. if([textV isEqualToString:@""] || textV == nil ||   !Enabled)
  53. {
  54. return %orig;
  55.   }
  56.    
  57.     else if (Enabled) {
  58. NSNumberFormatter *f = [[NSNumberFormatter alloc] init];
  59. f.numberStyle = NSNumberFormatterDecimalStyle;
  60. NSNumber *myNumber = [f numberFromString:textV];
  61.  
  62.         arg1 = myNumber;
  63.  
  64.       return  %orig(arg1);
  65.     }
  66.  
  67. }
  68.  
  69. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement