#!name=🆂🅿🅾🆃🅸🅵🆈 声破天解锁 #!icon=https://raw.githubusercontent.com/LOWERTOP/ShadowRule/refs/heads/master/icon/color/spotify.png #!desc=会员配置、首页与播放页去广告,集成歌词补全和双语翻译。支持编辑参数,可以调整歌词部分选项,增加百度翻译开放平台服务以增强翻译成功率。脚本来源:Reukix #!arguments=歌词补全:"true",歌词翻译:"true",翻译语言:"zh-CN",百度翻译:"false",翻译账户:"自行申请并填写",翻译密钥:"自行申请并填写" #!arguments-desc=\n\n模块说明:请停用其他 Spotify 歌词模块,避免重复处理同一接口。若歌词存在官方歌词则优先选用;外部歌词按歌名、歌手和时长匹配;默认使用网易、谷歌等翻译,支持选填百度翻译APPID,启用后若不存在网易人工翻译,则首选百度翻译,可一定程度上避免翻译受限。 \n\n脚本来源:Reukix \n\n歌词补全:启用歌词补全 \n\n歌词翻译:启用歌词翻译 \n\n翻译语言:翻译目标语言,默认 zh-CN \n\n百度翻译:启用百度翻译 \n\n翻译账户:百度翻译开放平台的 APP ID \n\n翻译密钥:百度翻译开放平台的密钥 #!version=Based on @Reukix v2026.11.16.1 #!author=Reukix #!homepage=https://github.com/Reukix/ukix [Rule] AND,((DOMAIN-SUFFIX, spotify.com), (PROTOCOL, QUIC)),REJECT DOMAIN,aet.spotify.com,REJECT [Header Rewrite] http-request ^https:\/\/(?:[A-Za-z0-9-]+-)?spclient(?:\.wg)?\.spotify\.com(?::443)?\/(?:user-customization-service\/v1\/customize|nebula\/v1\/configuration\/attributes|remote-config-resolver\/v3\/configuration)\/?(?:\?[^#]*)?$ header-del if-none-match [URL Rewrite] ^https:\/\/(spclient\.wg|.*-spclient)\.spotify\.com(:443)?\/pendragon - reject ^https:\/\/.*-spclient\.spotify\.com(:443)?\/pam-view-service\/ - reject ^https:\/\/.*37i9dQZF1EYkqdzj48dyYq - reject [Map Local] ^https:\/\/(.*-spclient\.spotify\.com(:443)?|spclient\.wg\.spotify\.com)\/gabo-receiver-service data-type=text data="" status-code=200 header="Cache-Control:no-cache|Content-Length:0" [Script] spotify-home = type=http-response,pattern=^https:\/\/(?:[A-Za-z0-9-]+-)?spclient(?:\.wg)?\.spotify\.com(?::443)?\/casita\/v1\/home\/default\/?(?:\?[^#]*)?$,requires-body=1,binary-body-mode=1,max-size=2097152,script-path=https://raw.githubusercontent.com/LOWERTOP/Shadowrocket-First/main/JS/Spotify.js,timeout=5 spotify-search = type=http-response,pattern=^https:\/\/(spclient\.wg\.spotify\.com|.*-spclient\.spotify\.com(:443)?)\/browsita\/v.\/browse,requires-body=1,binary-body-mode=1,max-size=2097152,script-path=https://raw.githubusercontent.com/LOWERTOP/Shadowrocket-First/main/JS/Spotify.js,timeout=5 spotify-scroll=type=http-response,pattern=^https:\/\/(?:[A-Za-z0-9-]+-)?spclient(?:\.wg)?\.spotify\.com(?::443)?\/scrollsita\/v[0-9]+\/scroll\/spotify:[^?#]+(?:\?[^#]*)?$,requires-body=true,binary-body-mode=true,max-size=2097152,timeout=8,script-path=https://raw.githubusercontent.com/LOWERTOP/Shadowrocket-First/main/JS/Spotify.js,argument=Lyrics={{{歌词补全}}}&Translate={{{歌词翻译}}}&TargetLanguage={{{翻译语言}}}&BaiduTranslate={{{百度翻译}}}&BaiduAppId={{{翻译账户}}}&BaiduKey={{{翻译密钥}}} spotify-lyrics=type=http-response,pattern=^https:\/\/(?:[A-Za-z0-9-]+-)?spclient(?:\.wg)?\.spotify\.com(?::443)?\/color-lyrics\/v2\/track\/[A-Za-z0-9]{22}(?:\/image\/[^/?#]+)?\/?(?:\?[^#]*)?$,requires-body=true,binary-body-mode=true,max-size=2097152,timeout=20,script-path=https://raw.githubusercontent.com/LOWERTOP/Shadowrocket-First/main/JS/Spotify.js,argument=Lyrics={{{歌词补全}}}&Translate={{{歌词翻译}}}&TargetLanguage={{{翻译语言}}}&BaiduTranslate={{{百度翻译}}}&BaiduAppId={{{翻译账户}}}&BaiduKey={{{翻译密钥}}} spotify-lyrics-metadata=type=http-response,pattern=^https:\/\/(?:[A-Za-z0-9-]+-)?spclient(?:\.wg)?\.spotify\.com(?::443)?\/(?:extended-metadata\/v0\/extended-metadata|metadata\/4\/track\/[a-fA-F0-9]{32})(?:\?[^#]*)?$,requires-body=true,binary-body-mode=true,max-size=2097152,script-path=https://raw.githubusercontent.com/LOWERTOP/Shadowrocket-First/main/JS/Spotify.js,argument=Lyrics={{{歌词补全}}}&Translate={{{歌词翻译}}}&TargetLanguage={{{翻译语言}}}&BaiduTranslate={{{百度翻译}}}&BaiduAppId={{{翻译账户}}}&BaiduKey={{{翻译密钥}}},timeout=5 spotify-lyrics-playback=type=http-response,pattern=^https:\/\/(?:[A-Za-z0-9-]+-)?spclient(?:\.wg)?\.spotify\.com(?::443)?\/connect-state\/v1\/devices\/[^/?#]+\/?(?:\?[^#]*)?$,requires-body=true,binary-body-mode=true,max-size=2097152,script-path=https://raw.githubusercontent.com/LOWERTOP/Shadowrocket-First/main/JS/Spotify.js,argument=Lyrics={{{歌词补全}}}&Translate={{{歌词翻译}}}&TargetLanguage={{{翻译语言}}}&BaiduTranslate={{{百度翻译}}}&BaiduAppId={{{翻译账户}}}&BaiduKey={{{翻译密钥}}},timeout=5 spotify-proto = type=http-response,pattern=^https:\/\/(?:[A-Za-z0-9-]+-)?spclient(?:\.wg)?\.spotify\.com(?::443)?\/(?:bootstrap\/v1\/bootstrap|user-customization-service\/v1\/customize|nebula\/v1\/configuration\/attributes|remote-config-resolver\/v3\/configuration)\/?(?:\?[^#]*)?$,requires-body=1,binary-body-mode=1,max-size=2097152,script-path=https://raw.githubusercontent.com/LOWERTOP/Shadowrocket-First/main/JS/Spotify.js,script-update-interval=86400,timeout=5 [MITM] hostname = %APPEND% spclient.wg.spotify.com, spclient.spotify.com, *spclient.spotify.com, *-spclient.wg.spotify.com