#!name=Xbox Param Capturer
#!desc=抓取 Xbox 参数 (全区/防缓存/忽略大小写)
#!author=Ah Long
#!category=XBOX

[Script]
XboxProductList = type=http-response, pattern=(?i)^https://emerald\.xboxservices\.com/xboxcomfd/productActions/.*locale=en-us, requires-body=1, max-size=0, binary-body-mode=0, timeout=60, script-update-interval=0, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/XboxProductList.js
Xbox_Auth_CartId = type=http-request, pattern=(?i)^https://cart\.production\.store-web\.dynamics\.com/v1\.0/cart/eligibilityCheck, requires-body=0, script-update-interval=0, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/authorization%26cartId.js
Xbox_Mscv_MUID = type=http-request, pattern=(?i)^https://cart\.production\.store-web\.dynamics\.com/.*loadCart, requires-body=0, script-update-interval=0, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/CartParameter.js
Xbox_Gamertag_History = type=http-response, pattern=(?i)^https://peoplehub-public\.xboxlive\.com/people/gt\(.+\), requires-body=1, max-size=0, binary-body-mode=0, timeout=60, script-update-interval=0, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/capture_gamertag.js

[Header Rewrite]
^https://emerald\.xboxservices\.com/xboxcomfd/productActions/ header-del If-Modified-Since
^https://emerald\.xboxservices\.com/xboxcomfd/productActions/ header-del If-None-Match

[MITM]
hostname = %APPEND% emerald.xboxservices.com, cart.production.store-web.dynamics.com, peoplehub-public.xboxlive.com