#!name=Spotify 模块 #!desc=部分解锁 Premium,音质不能设置为超高,分流节点须同注册地保持一致(建议登录后再启用,重启app等待生效) # 功能: 1.去除播放广告 2.歌手/专辑列表正常展示 3.去除随机播放 # 上游源码来自于:https://github.com/app2smile/rules # 本模块仓库地址:https://github.com/LOWERTOP/Shadowrocket-First # Shadowrocket 不兼容下方 Header Rewrite 内容 # [Header Rewrite] # if-none-match返回304状态码 # http-request ^https:\/\/spclient\.wg\.spotify\.com\/user-customization-service\/v1\/customize$ header-del if-none-match [Rule] DOMAIN-SUFFIX,ad.doubleclick.net,REJECT-DROP [Script] # 本仓创建的 JS,用以替代 Header Rewrite,如有故障请注释掉下行内容 spotify-header = type=http-request,pattern=^https:\/\/spclient\.wg\.spotify\.com\/user-customization-service\/v1\/customize$,requires-body=false,script-path=https://raw.githubusercontent.com/LOWERTOP/Shadowrocket-First/main/JS/spotify-header.js,timeout=10 # app2smile 原始脚本 spotify-json = type=http-request,pattern=^https:\/\/spclient\.wg\.spotify\.com\/(artistview\/v1\/artist|album-entity-view\/v2\/album)\/,requires-body=0,script-path=https://raw.githubusercontent.com/app2smile/rules/master/js/spotify-json.js spotify-proto = type=http-response,pattern=^https:\/\/spclient\.wg\.spotify\.com\/(bootstrap\/v1\/bootstrap|user-customization-service\/v1\/customize)$,requires-body=1,binary-body-mode=1,max-size=0,script-path=https://raw.githubusercontent.com/app2smile/rules/master/js/spotify-proto.js,script-update-interval=0 [MITM] hostname = %APPEND% spclient.wg.spotify.com