-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathTweak.x
79 lines (63 loc) · 2.53 KB
/
Tweak.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#import <UIKit/UIKit.h>
%hook AdPlayQueueManager
- (bool)isItemMonetizable:(id)arg1 {
return NO;
}
%end
%hook PlayQueueTrack
- (bool)isMonetizable {
return NO;
}
- (id)initWithUrn:(id)arg1 transcodings:(id)arg2 streamURL:(id)arg3 permalinkURL:(id)arg4 waveformURL:(id)arg5 artistUrn:(id)arg6 stationUrn:(id)arg7 artistName:(id)arg8 title:(id)arg9 playQueueTitle:(id)arg10 playableDuration:(double)arg11 fullDuration:(double)arg12 monetizable:(bool)arg13 shareable:(bool)arg14 blocked:(bool)arg15 snipped:(bool)arg16 syncable:(bool)arg17 subMidTier:(bool)arg18 subHighTier:(bool)arg19 policy:(id)arg20 monetizationModel:(id)arg21 analyticsBag:(id)arg22 imageUrlTemplate:(id)arg23 genre:(id)arg24 {
arg13 = NO;
return %orig;
}
%end
%hook SoundCloudPatchedSwiftClassNameAudioAdPlayerEventController
- (id)init {
return NULL;
}
%end
%hook SoundCloudPatchedSwiftClassNamePlayQueueItemTrackEntity
- (bool)isMonetizable {
return NO;
}
- (id)initWithUrn:(id)arg1 transcodings:(id)arg2 streamURL:(id)arg3 waveformURL:(id)arg4 artistUrn:(id)arg5 stationUrn:(id)arg6 artistName:(id)arg7 title:(id)arg8 playQueueTitle:(id)arg9 playableDurationInMs:(unsigned long long)arg10 fullDurationInMs:(unsigned long long)arg11 monetizable:(bool)arg12 shareable:(bool)arg13 blocked:(bool)arg14 snipped:(bool)arg15 syncable:(bool)arg16 subMidTier:(bool)arg17 subHighTier:(bool)arg18 monetizationModel:(id)arg19 policy:(id)arg20 analyticsBag:(id)arg21 artworkUrn:(id)arg22 itemType:(long long)arg23 imageUrlTemplate:(id)arg24 secretToken:(id)arg25 playlistStationUrn:(id)arg26 permalinkURL:(id)arg27 genre:(id)arg28 {
arg12 = NO;
return %orig;
}
%end
%hook SoundCloudPatchedSwiftClassNameUpsellManager
- (bool)shouldUpsell {
return NO;
}
- (bool)shouldUpsellCreator {
return NO;
}
- (bool)shouldUpsellForTrack:(id)arg1 {
return NO;
}
- (bool)shouldShowTabBarUpsell {
return NO;
}
- (bool)canNotUpsell {
return YES;
}
- (bool)shouldUpsellForPlaylist:(id)arg1 {
return NO;
}
%end
%hook SoundCloudPatchedSwiftClassNameUserFeaturesService
- (bool)isNoAudioAdsEnabled {
return YES;
}
- (bool)isHQAudioFeatureEnabled {
return YES;
}
%end
%ctor {
%init(SoundCloudPatchedSwiftClassNamePlayQueueItemTrackEntity = objc_getClass("SoundCloud.PlayQueueItemTrackEntity"),
SoundCloudPatchedSwiftClassNameUserFeaturesService = objc_getClass("SoundCloud.UserFeaturesService"),
SoundCloudPatchedSwiftClassNameUpsellManager = objc_getClass("SoundCloud.UpsellManager"),
SoundCloudPatchedSwiftClassNameAudioAdPlayerEventController = objc_getClass("SoundCloud.AudioAdPlayerEventController"));
}