#!name = 🍿️ DualSubs: 🎵 Spotify #!desc = Spotify 增强及双语歌词 #!openUrl = http://boxjs.com/#/app/DualSubs.Spotify #!author = VirgilClyne[https://github.com/VirgilClyne] #!homepage = https://DualSubs.github.io/guide/spotify #!icon = https://github.com/DualSubs/Spotify/raw/main/src/assets/icon_rounded.png #!category = 🍿️ DualSubs #!date = 2025-10-25 04:40:57 #!version = 1.9.12 #!arguments = Types:"Translate,External",Languages[0]:"AUTO",Languages[1]:"ZH",Vendor:"Google",LrcVendor:"NeteaseMusic",LogLevel:"WARN" #!arguments-desc = Types: [歌词] 启用类型(多选)\n ├ Translate: 翻译歌词(翻译器)\n └ External: 外部歌词(外部源)\n请选择要添加的歌词选项,如果为多选,则会自动决定提供的歌词类型。\n\nLanguages[0]: [翻译器] 主语言(源语言)\n ├ AUTO: 自动 - Automatic\n ├ ZH: 中文(自动)\n ├ ZH-HANS: 中文(简体)\n ├ ZH-HK: 中文(香港)\n ├ ZH-HANT: 中文(繁体)\n ├ EN: English - 英语(自动)\n ├ ES: Español - 西班牙语(自动)\n ├ JA: 日本語 - 日语\n ├ KO: 한국어 - 韩语\n ├ DE: Deutsch - 德语\n ├ FR: Français - 法语\n ├ TR: Türkçe - 土耳其语\n └ KM: ភាសាខ្មែរ - 高棉语\n仅当源语言识别不准确时更改此选项。\n\nLanguages[1]: [翻译器] 副语言(目标语言)\n ├ ZH: 中文(自动)\n ├ ZH-HANS: 中文(简体)\n ├ ZH-HK: 中文(香港)\n ├ ZH-HANT: 中文(繁体)\n ├ EN: English - 英语(自动)\n ├ ES: Español - 西班牙语(自动)\n ├ JA: 日本語 - 日语\n ├ KO: 한국어 - 韩语\n ├ DE: Deutsch - 德语\n ├ FR: Français - 法语\n ├ TR: Türkçe - 土耳其语\n └ KM: ភាសាខ្មែរ - 高棉语\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\nLogLevel: [调试] 日志等级\n ├ OFF: 🔴 关闭\n ├ ERROR: ❌ 错误\n ├ WARN: ⚠️ 警告\n ├ INFO: ℹ️ 信息\n ├ DEBUG: 🅱️ 调试\n └ ALL: 全部\n选择脚本日志的输出等级,低于所选等级的日志将全部输出。\n [Script] 🍿️ DualSubs.Spotify.Tracks.response.json = type=http-response, pattern=^https?:\/\/api\.spotify\.com\/v1\/tracks\?, requires-body=1, engine=webview, script-path=https://github.com/DualSubs/Spotify/releases/download/v1.9.12/response.bundle.js, argument=Types="{{{Types}}}"&Languages[0]="{{{Languages[0]}}}"&Languages[1]="{{{Languages[1]}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}"&LogLevel="{{{LogLevel}}}" 🍿️ DualSubs.Spotify.Lyrics.request.json = type=http-request, pattern=^https?:\/\/(.+-spclient|spclient\.wg).spotify\.com(:443)?\/color-lyrics\/v2\/track\/(.+)\?(.*)format=json, requires-body=1, script-path=https://github.com/DualSubs/Spotify/releases/download/v1.9.12/request.bundle.js, argument=Types="{{{Types}}}"&Languages[0]="{{{Languages[0]}}}"&Languages[1]="{{{Languages[1]}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}"&LogLevel="{{{LogLevel}}}" 🍿️ DualSubs.Spotify.Lyrics.request.proto = type=http-request, pattern=^https?:\/\/(.+-spclient|spclient\.wg).spotify\.com(:443)?\/color-lyrics\/v2\/track\/\w+\?(.*), requires-body=1, binary-body-mode=1, script-path=https://github.com/DualSubs/Spotify/releases/download/v1.9.12/request.bundle.js, argument=Types="{{{Types}}}"&Languages[0]="{{{Languages[0]}}}"&Languages[1]="{{{Languages[1]}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}"&LogLevel="{{{LogLevel}}}" 🍿️ DualSubs.Spotify.Translate.Lyrics.response.json = type=http-response, pattern=^https?:\/\/(.+-spclient|spclient\.wg).spotify\.com(:443)?\/color-lyrics\/v2\/track\/(.+)\?(.*)format=json(.*)subtype=Translate, requires-body=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js, argument=Types="{{{Types}}}"&Languages[0]="{{{Languages[0]}}}"&Languages[1]="{{{Languages[1]}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}"&LogLevel="{{{LogLevel}}}" 🍿️ DualSubs.Spotify.Translate.Lyrics.response.proto = type=http-response, pattern=^https?:\/\/(.+-spclient|spclient\.wg).spotify\.com(:443)?\/color-lyrics\/v2\/track\/\w+\?(.*)subtype=Translate, requires-body=1, binary-body-mode=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js, argument=Types="{{{Types}}}"&Languages[0]="{{{Languages[0]}}}"&Languages[1]="{{{Languages[1]}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}"&LogLevel="{{{LogLevel}}}" 🍿️ DualSubs.Spotify.External.Lyrics.response.json = type=http-response, pattern=^https?:\/\/(.+-spclient|spclient\.wg).spotify\.com(:443)?\/color-lyrics\/v2\/track\/(.+)\?(.*)format=json(.*)subtype=External, requires-body=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/External.Lyrics.response.bundle.js, argument=Types="{{{Types}}}"&Languages[0]="{{{Languages[0]}}}"&Languages[1]="{{{Languages[1]}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}"&LogLevel="{{{LogLevel}}}" 🍿️ DualSubs.Spotify.External.Lyrics.response.proto = type=http-response, pattern=^https?:\/\/(.+-spclient|spclient\.wg).spotify\.com(:443)?\/color-lyrics\/v2\/track\/\w+\?(.*)subtype=External, requires-body=1, binary-body-mode=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/External.Lyrics.response.bundle.js, argument=Types="{{{Types}}}"&Languages[0]="{{{Languages[0]}}}"&Languages[1]="{{{Languages[1]}}}"&Vendor="{{{Vendor}}}"&LrcVendor="{{{LrcVendor}}}"&LogLevel="{{{LogLevel}}}" [MITM] hostname = %APPEND% api.spotify.com, spclient.wg.spotify.com, *-spclient.spotify.com