Skip to content

Commit

Permalink
docs(template): script tag/name
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Oct 28, 2024
1 parent b461406 commit 9cd6866
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion template/egern.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version: "{{@package 'version'}}"

scriptings:
- http_response:
name: 'DualSubs.Netflix.Translate.Subtitles.response'
name: '🍿️ DualSubs.Netflix.Translate.Subtitles.response'
match: ^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+
script_url: https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js
body_required: true
Expand Down
2 changes: 1 addition & 1 deletion template/loon.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{{arguments}}}

[Script]
http-response ^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+ requires-body=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js, tag=DualSubs.Netflix.Translate.Subtitles.response
http-response ^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+ requires-body=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js, tag=🍿️ DualSubs.Netflix.Translate.Subtitles.response

[MITM]
hostname = *.oca.nflxvideo.net
2 changes: 1 addition & 1 deletion template/quantumultx.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#!version = {{@package 'version'}}

#[rewrite_local]
# DualSubs.Netflix.Translate.Subtitles.response
# 🍿️ DualSubs.Netflix.Translate.Subtitles.response
^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+ url script-response-body https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js

#[mitm]
Expand Down
2 changes: 1 addition & 1 deletion template/shadowrocket.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#!version = {{@package 'version'}}

[Script]
DualSubs.Netflix.Translate.Subtitles.response = type=http-response, pattern=^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+, requires-body=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js
🍿️ DualSubs.Netflix.Translate.Subtitles.response = type=http-response, pattern=^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+, requires-body=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js

[MITM]
hostname = %APPEND% *.oca.nflxvideo.net
Expand Down
4 changes: 2 additions & 2 deletions template/stash.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ http:
- "*.oca.nflxvideo.net"
script:
- match: ^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+
name: DualSubs.Netflix.Translate.Subtitles.response
name: 🍿️ DualSubs.Netflix.Translate.Subtitles.response
type: response
require-body: true

script-providers:
DualSubs.Netflix.Translate.Subtitles.response:
🍿️ DualSubs.Netflix.Translate.Subtitles.response:
url: https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js
interval: 86400
2 changes: 1 addition & 1 deletion template/surge.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#!arguments-desc = {{{argumentsDesc}}}

[Script]
DualSubs.Netflix.Translate.Subtitles.response = type=http-response, pattern=^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+, requires-body=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js, argument={{{scriptParams}}}
🍿️ DualSubs.Netflix.Translate.Subtitles.response = type=http-response, pattern=^https?:\/\/(.+)\.oca\.nflxvideo\.net\/\?o=\d+&v=\d+&e=\d+&t=.+, requires-body=1, script-path=https://github.com/DualSubs/Universal/releases/latest/download/Translate.response.bundle.js, argument={{{scriptParams}}}

[MITM]
hostname = %APPEND% *.oca.nflxvideo.net
Expand Down

0 comments on commit 9cd6866

Please sign in to comment.