From 9cd6866e55fbf23248db67334c861625fba08395 Mon Sep 17 00:00:00 2001 From: Virgil Clyne Date: Mon, 28 Oct 2024 16:28:20 +0800 Subject: [PATCH] docs(template): script tag/name --- template/egern.handlebars | 2 +- template/loon.handlebars | 2 +- template/quantumultx.handlebars | 2 +- template/shadowrocket.handlebars | 2 +- template/stash.handlebars | 4 ++-- template/surge.handlebars | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/template/egern.handlebars b/template/egern.handlebars index 989f76e..04df2ed 100644 --- a/template/egern.handlebars +++ b/template/egern.handlebars @@ -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 diff --git a/template/loon.handlebars b/template/loon.handlebars index c4d335d..30777fc 100644 --- a/template/loon.handlebars +++ b/template/loon.handlebars @@ -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 diff --git a/template/quantumultx.handlebars b/template/quantumultx.handlebars index 2db0dc8..ec94549 100644 --- a/template/quantumultx.handlebars +++ b/template/quantumultx.handlebars @@ -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] diff --git a/template/shadowrocket.handlebars b/template/shadowrocket.handlebars index 2a24836..35956ac 100644 --- a/template/shadowrocket.handlebars +++ b/template/shadowrocket.handlebars @@ -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 diff --git a/template/stash.handlebars b/template/stash.handlebars index b9f4c0c..8265073 100644 --- a/template/stash.handlebars +++ b/template/stash.handlebars @@ -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 diff --git a/template/surge.handlebars b/template/surge.handlebars index 4d76250..46bb187 100644 --- a/template/surge.handlebars +++ b/template/surge.handlebars @@ -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