#!name = Spotify #!desc = Spotify 增强及双语歌词 #!category = 去广告 #!date = 2024-10-26 14:36:10 #!version = 1.9.2 #!arguments = Types:"Translate,External",Vendor:"Google",LrcVendor:"NeteaseMusic" #!arguments-desc = Types: [歌词]启用类型(多选)\n ├ Translate: 翻译歌词(翻译器)\n └ External: 外部歌词(外部源)\n请选择要添加的歌词选项,如果为多选,则会自动决定提供的歌词类型。\n\nVendor: [翻译器]服务商API\n ├ Google: Google Translate\n └ Microsoft: Microsoft Translator(需填写API)\n请选择翻译器所使用的服务商API,更多翻译选项请使用BoxJs。\n\nLrcVendor: [歌词]服务商API\n ├ NeteaseMusic: 网易云音乐(官方)\n ├ QQMusic: QQ音乐(官方)\n └ NeteaseMusicNodeJS: 网易云音乐 NodeJS API\n请选择外部源所使用的服务商API。\n [Header Rewrite] # if-none-match返回304状态码 http-request ^https:\/\/spclient\.wg\.spotify\.com\/user-customization-service\/v1\/customize$ header-del if-none-match [Script] Spotify.Tracks.response.json = type=http-response, pattern=^https?:\/\/api\.spotify\.com\/v1\/tracks\?, requires-body=1, engine=webview, script-path=https://raw.githubusercontent.com/myouhi/Surge/master/scripts/spotify/response.bundle.js, argument=Types="{{{Types}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}" Spotify.Lyrics.request.json = type=http-request, pattern=^https?:\/\/spclient\.wg\.spotify\.com\/color-lyrics\/v2\/track\/(.+)\?(.*)format=json, requires-body=1, script-path=https://raw.githubusercontent.com/myouhi/Surge/master/scripts/spotify/request.bundle.js, argument=Types="{{{Types}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}" Spotify.Lyrics.request.proto = type=http-request, pattern=^https?:\/\/spclient\.wg\.spotify\.com\/color-lyrics\/v2\/track\/\w+\?(.*), requires-body=1, binary-body-mode=1, script-path=https://raw.githubusercontent.com/myouhi/Surge/master/scripts/spotify/request.bundle.js, argument=Types="{{{Types}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}" Spotify.Translate.Lyrics.response.json = type=http-response, pattern=^https?:\/\/spclient\.wg\.spotify\.com\/color-lyrics\/v2\/track\/(.+)\?(.*)format=json(.*)subtype=Translate, requires-body=1, script-path=https://raw.githubusercontent.com/myouhi/Surge/master/scripts/spotify/Translate.response.bundle.js, argument=Types="{{{Types}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}" Spotify.Translate.Lyrics.response.proto = type=http-response, pattern=^https?:\/\/spclient\.wg\.spotify\.com\/color-lyrics\/v2\/track\/\w+\?(.*)subtype=Translate, requires-body=1, binary-body-mode=1, script-path=https://raw.githubusercontent.com/myouhi/Surge/master/scripts/spotify/Translate.response.bundle.js, argument=Types="{{{Types}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}" Spotify.External.Lyrics.response.json = type=http-response, pattern=^https?:\/\/spclient\.wg\.spotify\.com\/color-lyrics\/v2\/track\/(.+)\?(.*)format=json(.*)subtype=External, requires-body=1, script-path=https://raw.githubusercontent.com/myouhi/Surge/master/scripts/spotify/External.Lyrics.response.bundle.js, argument=Types="{{{Types}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}" Spotify.External.Lyrics.response.proto = type=http-response, pattern=^https?:\/\/spclient\.wg\.spotify\.com\/color-lyrics\/v2\/track\/\w+\?(.*)subtype=External, requires-body=1, binary-body-mode=1, script-path=https://raw.githubusercontent.com/myouhi/Surge/master/scripts/spotify/External.Lyrics.response.bundle.js, argument=Types="{{{Types}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}" 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/myouhi/Surge/master/scripts/spotify/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/myouhi/Surge/master/scripts/spotify/spotify-proto.js,script-update-interval=0 [MITM] hostname = %APPEND% api.spotify.com, spclient.wg.spotify.com