Skip to content

Commit

Permalink
fix: template
Browse files Browse the repository at this point in the history
Update stash.handlebars
  • Loading branch information
VirgilClyne committed Dec 19, 2024
1 parent 9241b22 commit 0b69e61
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion template/Siri/loon.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}
Expand Down
2 changes: 1 addition & 1 deletion template/Siri/quantumultx.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#[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
^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
Expand Down
23 changes: 9 additions & 14 deletions template/Siri/stash.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}"
Expand All @@ -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


2 changes: 1 addition & 1 deletion template/Siri/surge.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}
Expand Down

0 comments on commit 0b69e61

Please sign in to comment.