forked from mymoonyue/Surge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subtitle.sgmodule
23 lines (16 loc) · 1.68 KB
/
subtitle.sgmodule
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!name=字幕
#!desc= Disney+, HBO Max, YouTube 机翻字幕
[Script]
# Youtube 中文字幕
# Shortcuts(用于修改字幕设置): https://www.icloud.com/shortcuts/a0c3f95778ef4c18970da66fda40b29b
Youtube-Subtrans = type=http-request,pattern=https:\/\/www.youtube.com\/api\/timedtext.+,requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/Neurogram-R/Surge/master/YouTube-Subtrans.js
# Disney+ 双语字幕
# Shortcuts(用于修改字幕设置): https://www.icloud.com/shortcuts/aa6056ad31c14f25aedbee6cd1d7a799
DisneyPlus-Dualsub = type=http-response,pattern=https:\/\/.+media.dssott.com\/ps01\/disney\/.+(\.vtt|-all-.+\.m3u8.*),requires-body=true,max-size=0,script-path=https://raw.githubusercontent.com/Neurogram-R/Surge/master/DisneyPlus-Dualsub.js
DisneyPlus-Dualsub-Setting = type=http-request,pattern=https:\/\/.+media.dssott.com\/ps01\/disney\?action=(get|set),requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/Neurogram-R/Surge/master/DisneyPlus-Dualsub.js
# HBO Max 双语字幕
# Shortcuts(用于修改字幕设置): https://www.icloud.com/shortcuts/9b27f9c335b54fc886849f99d6375cab
HBO-Max-Dualsub = type=http-response,pattern=https:\/\/(manifests.v2.api.hbo.com|.+hbomaxcdn.com)\/(hls.m3u8.+|video.+\.vtt$),requires-body=1,max-size=0,timeout=30,script-path=https://raw.githubusercontent.com/Neurogram-R/Surge/master/HBO-Max-Dualsub.js
HBO-Max-Dualsub-Setting = type=http-request,pattern=https:\/\/setting.hbomaxcdn.com\/vtt\?action=(get|set),requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/Neurogram-R/Surge/master/HBO-Max-Dualsub.js
[MITM]
hostname = %APPEND% www.youtube.com, *.media.dssott.com, *.api.hbo.com,*.hbomaxcdn.com