#!name= iRingo: 🌤 Weather
#!desc=V4️⃣ & iOS 16⬇️\n1.解锁全部天气功能\n2.替换空气质量数据\n3.添加下一小时降水数据\n4.替换空气质量地图
#!openUrl=http://boxjs.com/#/app/iRingo.Weather
#!author=WordlessEcho[https://github.com/WordlessEcho]
#!homepage=https://github.com/NSRingo
#!manual=https://github.com/NSRingo/Weather/wiki
#!icon=https://developer.apple.com/assets/elements/icons/weather/weather-128x128.png
#!category= iRingo

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

[Script]
Weather Availability Request = type=http-request, pattern=^https?:\/\/weather-data\.apple\.com\/(v1|v2|v3)\/availability\/, script-path=https://raw.githubusercontent.com/NSRingo/Weather/main/js/Availability.request.js, argument=
Weather Availability Response = type=http-response, pattern=^https?:\/\/weather-data\.apple\.com\/(v1|v2|v3)\/availability\/, requires-body=1, script-path=https://raw.githubusercontent.com/NSRingo/Weather/main/js/Availability.response.js, argument=
Weather Response = type=http-response, pattern=^https?:\/\/weather-data\.apple\.com\/(v1|v2|v3)\/weather\/, requires-body=1, script-path=https://raw.githubusercontent.com/NSRingo/Weather/main/js/response.js, argument=
Weather Map Request = type=http-request, pattern=^https?:\/\/weather-map2?\.apple\.com\/(v1|v2)\/mapOverlay\/\w+(\?.*country=CN.*)?$, script-path=https://raw.githubusercontent.com/NSRingo/Weather/main/js/Map.request.js, argument=

[MITM]
hostname = %APPEND% weather-edge.apple.com, weather-data.apple.com, weather-data-origin.apple.com, weather-map.apple.com, weather-map2.apple.com