Skip to content

Commit

Permalink
fix: modules
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Oct 16, 2024
1 parent ab48f14 commit 8088034
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
### 🛠️ Bug Fixes
* 增加阻断并丢弃 `*.tthr.apple.com` 的内置规则

### 🔄 Other Changes
* 打包器由 rollup 更改为 rspack
* 打包器由 `rollup` 更改为 `rspack`
1 change: 1 addition & 0 deletions template/loon.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

[Rule]
DOMAIN,weather-analytics-events.apple.com,REJECT-DROP
DOMAIN-SUFFIX,tthr.apple.com,REJECT-DROP

[Script]
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}}}
Expand Down
2 changes: 1 addition & 1 deletion template/quantumultx.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
^https?:\/\/weather-analytics-events\.apple\.com\/ url reject

#[mitm]
hostname = weatherkit.apple.com, weather-analytics-events.apple.com
hostname = weatherkit.apple.com, weather-analytics-events.apple.com, *.tthr.apple.com
1 change: 1 addition & 0 deletions template/stash.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ version: "{{@package 'version'}}"

rules:
- DOMAIN,weather-analytics-events.apple.com,REJECT-DROP
- DOMAIN-SUFFIX,tthr.apple.com,REJECT-DROP

http:
mitm:
Expand Down
1 change: 1 addition & 0 deletions template/surge.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

[Rule]
DOMAIN,weather-analytics-events.apple.com,REJECT-DROP
DOMAIN-SUFFIX,tthr.apple.com,REJECT-DROP,extended-matching

[Script]
🌤 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}}}
Expand Down

0 comments on commit 8088034

Please sign in to comment.