From 4319874e8f09f3956905ce6bc88c92c8ff89d8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=84=86=E8=96=AF=E9=A5=BC?= Date: Thu, 19 Dec 2024 00:17:28 +0800 Subject: [PATCH] fix: template Update quantumultx.handlebars Update stash.handlebars --- template/Siri/loon.handlebars | 2 +- template/Siri/quantumultx.handlebars | 16 ++++++++-------- template/Siri/stash.handlebars | 23 +++++++++-------------- template/Siri/surge.handlebars | 2 +- 4 files changed, 19 insertions(+), 24 deletions(-) diff --git a/template/Siri/loon.handlebars b/template/Siri/loon.handlebars index 8c719c9..bbe4e57 100644 --- a/template/Siri/loon.handlebars +++ b/template/Siri/loon.handlebars @@ -14,7 +14,7 @@ {{{arguments}}} [Script] -http-request ^https?:\/\/(api-siri|api2|api-.+)\.smoot\.apple\.com\/search script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/response.bundle.js, tag=⭕ Siri.Search.request , argument={{{scriptParams}}} +http-request ^https?:\/\/(api-siri|api2|api-.+)\.smoot\.apple\.com\/search script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js, tag=⭕ Siri.Search.request , argument={{{scriptParams}}} http-request ^https?:\/\/(guzzoni|api2|api-.+)\.smoot\.apple\.com\/apple\.parsec\.siri\.v2alpha\.SiriSearch\/SiriSearch requires-body=1, binary-body-mode=1, script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js, tag=⭕ Siri.SiriSearch.request, argument={{{scriptParams}}} http-request ^https?:\/\/api-safari(-.+)?\.smoot\.apple\.com\/apple\.parsec\.safari\.v1alpha\.SafariSearch\/SafariSearch requires-body=1, binary-body-mode=1, script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js, tag=🔍 Safari.SafariSearch.request, argument={{{scriptParams}}} http-request ^https?:\/\/api-lookup(-.+)?\.smoot\.apple\.com\/apple\.parsec\.lookup\.v1alpha\.LookupSearch\/LookupSearch requires-body=1, binary-body-mode=1, script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js, tag=🔍 Lookup.LookupSearch.request, argument={{{scriptParams}}} diff --git a/template/Siri/quantumultx.handlebars b/template/Siri/quantumultx.handlebars index ce56ec1..1571cb2 100644 --- a/template/Siri/quantumultx.handlebars +++ b/template/Siri/quantumultx.handlebars @@ -9,19 +9,19 @@ #!version = {{@package 'version'}} #[rewrite_local] -⭕ Siri.Search.request -^https?:\/\/(api-siri|api2|api-.+)\.smoot\.apple\.com\/search url script-request-header https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/response.bundle.js -⭕ Siri.SiriSearch.request +# ⭕ Siri.Search.request +^https?:\/\/(api-siri|api2|api-.+)\.smoot\.apple\.com\/search url script-request-header https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js +# ⭕ Siri.SiriSearch.request ^https?:\/\/(guzzoni|api2|api-.+)\.smoot\.apple\.com\/apple\.parsec\.siri\.v2alpha\.SiriSearch\/SiriSearch url script-request-body https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js -🔍 Safari.SafariSearch.request +# 🔍 Safari.SafariSearch.request ^https?:\/\/api-safari(-.+)?\.smoot\.apple\.com\/apple\.parsec\.safari\.v1alpha\.SafariSearch\/SafariSearch url script-request-body https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js -🔍 Lookup.LookupSearch.request +# 🔍 Lookup.LookupSearch.request ^https?:\/\/api-lookup(-.+)?\.smoot\.apple\.com\/apple\.parsec\.lookup\.v1alpha\.LookupSearch\/LookupSearch url script-request-body https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js -🔍 Visualsearch.VisualSearch.request +# 🔍 Visualsearch.VisualSearch.request ^https?:\/\/(api2|api-.+)\.smoot\.apple\.com\/apple\.parsec\.visualsearch\.v2\.VisualSearch\/VisualSearch url script-request-body https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js -🔍 ResponseFramework.Engagement.EngagementSearch.request +# 🔍 ResponseFramework.Engagement.EngagementSearch.request ^https?:\/\/(api-.+)\.smoot\.apple\.com\/apple\.parsec\.responseframework\.engagement\.v1alpha\.EngagementSearch\/EngagementSearch url script-request-body https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js -🔍 Spotlight.ZkwSuggestService.request +# 🔍 Spotlight.ZkwSuggestService.request ^https?:\/\/(api-.+)\.smoot\.apple\.com\/apple\.parsec\.spotlight\.v1alpha\.ZkwSuggestService\/Suggest url script-request-body https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js #[mitm] diff --git a/template/Siri/stash.handlebars b/template/Siri/stash.handlebars index a30d84f..8d26186 100644 --- a/template/Siri/stash.handlebars +++ b/template/Siri/stash.handlebars @@ -8,7 +8,7 @@ author: |- {{#each (@package 'contributors')}} {{this}} {{/each}} -homepage: "{{@package 'homepage'}}/siri +homepage: "{{@package 'homepage'}}/siri" icon: "{{@package 'icon'}}" category: "{{@package 'organizationName'}}" date: "{{now "yyyy-MM-dd HH:mm:ss"}}" @@ -21,52 +21,47 @@ http: - "api-*.smoot.apple.com" script: - match: ^https?:\/\/(api-siri|api2|api-.+)\.smoot\.apple\.com\/search - name: "Siri.request" + name: Siri.request type: request argument: - match: ^https?:\/\/(guzzoni|api2|api-.+)\.smoot\.apple\.com\/apple\.parsec\.siri\.v2alpha\.SiriSearch\/SiriSearch - name: "Siri.request" + name: Siri.request type: request require-body: true binary-mode: true argument: - match: ^https?:\/\/api-safari(-.+)?\.smoot\.apple\.com\/apple\.parsec\.safari\.v1alpha\.SafariSearch\/SafariSearch - name: "Siri.request" + name: Siri.request type: request require-body: true binary-mode: true argument: - match: ^https?:\/\/api-lookup(-.+)?\.smoot\.apple\.com\/apple\.parsec\.lookup\.v1alpha\.LookupSearch\/LookupSearch - name: "Siri.request" + name: Siri.request type: request require-body: true binary-mode: true argument: - match: ^https?:\/\/(api2|api-.+)\.smoot\.apple\.com\/apple\.parsec\.visualsearch\.v2\.VisualSearch\/VisualSearch - name: "Siri.request" + name: Siri.request type: request require-body: true binary-mode: true argument: - match: ^https?:\/\/(api-.+)\.smoot\.apple\.com\/apple\.parsec\.responseframework\.engagement\.v1alpha\.EngagementSearch\/EngagementSearch - name: "Siri.request" + name: Siri.request type: request require-body: true binary-mode: true argument: - match: ^https?:\/\/(api-.+)\.smoot\.apple\.com\/apple\.parsec\.spotlight\.v1alpha\.ZkwSuggestService\/Suggest - name: "Siri.request" + name: Siri.request type: request require-body: true binary-mode: true argument: script-providers: - "Siri.request": - url: https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/response.bundle.js - interval: 86400 - "Siri.response": + Siri.request: url: https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js interval: 86400 - - diff --git a/template/Siri/surge.handlebars b/template/Siri/surge.handlebars index 88bea22..8578b43 100644 --- a/template/Siri/surge.handlebars +++ b/template/Siri/surge.handlebars @@ -11,7 +11,7 @@ #!arguments-desc = {{{argumentsDesc}}} [Script] -⭕ Siri.Search.request = type=http-request, pattern=^https?:\/\/(api-siri|api2|api-.+)\.smoot\.apple\.com\/search, engine=webview, script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/response.bundle.js, argument={{{scriptParams}}} +⭕ Siri.Search.request = type=http-request, pattern=^https?:\/\/(api-siri|api2|api-.+)\.smoot\.apple\.com\/search, engine=webview, script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} ⭕ Siri.SiriSearch.request = type=http-request, pattern=^https?:\/\/(guzzoni|api2|api-.+)\.smoot\.apple\.com\/apple\.parsec\.siri\.v2alpha\.SiriSearch\/SiriSearch, requires-body=1, binary-body-mode=1, engine=webview, debug=1, script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} 🔍 Safari.SafariSearch.request = type=http-request, pattern=^https?:\/\/api-safari(-.+)?\.smoot\.apple\.com\/apple\.parsec\.safari\.v1alpha\.SafariSearch\/SafariSearch, requires-body=1, binary-body-mode=1, engine=webview, debug=1, script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}} 🔍 Lookup.LookupSearch.request = type=http-request, pattern=^https?:\/\/api-lookup(-.+)?\.smoot\.apple\.com\/apple\.parsec\.lookup\.v1alpha\.LookupSearch\/LookupSearch, requires-body=1, binary-body-mode=1, engine=webview, debug=1, script-path=https://github.com/NSRingo/Siri/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}}