Skip to content

Commit 5d2adc9

Browse files
committed
fix(handlebars): add request for airQualityScale
1 parent 7893bb4 commit 5d2adc9

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

template/loon.handlebars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ AND,((IP-ASN,714,no-resolve),(PROTOCOL,QUIC)),REJECT-DROP
2121

2222
[Script]
2323
http-response ^https?:\/\/weatherkit\.apple\.com\/api\/v1\/availability\/ requires-body=1, script-path=https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/response.bundle.js, tag=🌤 WeatherKit.api.v1.availability.response, argument={{{scriptParams}}}
24+
http-request ^https?:\/\/weatherkit\.apple\.com\/api\/v1\/airQualityScale\/ script-path=https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/request.bundle.js, tag=🌤 WeatherKit.api.v1.airQualityScale.request, argument={{{scriptParams}}}
2425
http-response ^https?:\/\/weatherkit\.apple\.com\/api\/v2\/weather\/ requires-body=1, binary-body-mode=1, script-path=https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/response.bundle.js, tag=🌤 WeatherKit.api.v2.weather.response, argument={{{scriptParams}}}
2526

2627
[MITM]

template/quantumultx.handlebars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ host, tether.edge.apple, reject
1616
#[rewrite_local]
1717
# 🌤 WeatherKit.api.v1.availability.response
1818
^https?:\/\/weatherkit\.apple\.com\/api\/v1\/availability\/ url script-response-body https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/response.bundle.js
19+
# 🌤 WeatherKit.api.v1.airQualityScale.request
20+
^https?:\/\/weatherkit\.apple\.com\/api\/v1\/airQualityScale\/ url script-request-header https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/request.bundle.js
1921
# 🌤 WeatherKit.api.v2.weather.response
2022
^https?:\/\/weatherkit\.apple\.com\/api\/v2\/weather\/ url script-response-body https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/response.bundle.js
2123

template/stash.handlebars

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ http:
2929
type: response
3030
require-body: true
3131
argument:
32+
- match: ^https?:\/\/weatherkit\.apple\.com\/api\/v1\/airQualityScale\/
33+
name: WeatherKit.api.v1.airQualityScale.request
34+
type: request
35+
argument:
3236
- match: ^https?:\/\/weatherkit\.apple\.com\/api\/v2\/weather\/
3337
name: WeatherKit.api.v2.weather.response
3438
type: response

template/surge.handlebars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ AND,((IP-ASN,714,no-resolve),(PROTOCOL,QUIC)),REJECT-DROP
1818

1919
[Script]
2020
🌤 WeatherKit.api.v1.availability.response = type=http-response, pattern=^https?:\/\/weatherkit\.apple\.com\/api\/v1\/availability\/, requires-body=1, engine=webview, script-path=https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/response.bundle.js, argument={{{scriptParams}}}
21+
🌤 WeatherKit.api.v1.airQualityScale.request = type=http-request, pattern=^https?:\/\/weatherkit\.apple\.com\/api\/v1\/airQualityScale\/, engine=webview, script-path=https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/request.bundle.js, argument={{{scriptParams}}}
2122
🌤 WeatherKit.api.v2.weather.response = type=http-response, pattern=^https?:\/\/weatherkit\.apple\.com\/api\/v2\/weather\/, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/NSRingo/WeatherKit/releases/download/v{{@package 'version'}}/response.bundle.js, argument={{{scriptParams}}}
2223

2324
[MITM]

0 commit comments

Comments
 (0)