Skip to content

Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.

C

feat: Spoof Premium shows the DJ in more countries (experiment)

My-Name-Is-Jeff69bbefb9f17f
diff --git a/tweak/Sources/Shared/AdBlock/DJ.x b/tweak/Sources/Shared/AdBlock/DJ.x
new file mode 100644
index 00000000..b2585358
--- /dev/null
+++ b/tweak/Sources/Shared/AdBlock/DJ.x
@@ -0,0 +1,17 @@
+// The DJ under Spoof Premium: Spotify offers it only where its playlist (spotify:playlist:37i9dQZF1EYkqdzj48dyYq)
+// loads, which the checker below tries first. Answering yes shows the DJ in other countries too; whether it plays
+// there is the server's call.
+#import "Core/SGCore.h"
+#import "AdBlock.h"
+
+%hook _TtC16Endless_AIDJImpl26AIDJEligibilityCheckerImpl
+- (void)isEligibleForDJWithCompletion:(void (^)(BOOL))completion {
+ if (completion) completion(YES);
+}
+%end
+
+%ctor {
+ if (!SGHidden(SGKeyFakePremium)) return;
+ %init;
+ SGRequireClasses(@[@"_TtC16Endless_AIDJImpl26AIDJEligibilityCheckerImpl"]);
+}