#!name=Xbox Web Controller
#!desc=通过访问虚拟域名触发脚本：\n1. 访问 https://addtocart.com -> 触发添加/购买脚本\n2. 访问 https://clearlist.com -> 清空本地 ProductList\n3. 访问 https://syncxbox.com -> 从云端同步数据并清理云端队列\n4. 访问 https://addmsgames.com -> 多区域加购选择界面（美区/尼区/阿区）\n5. 访问 https://carthistory.com -> Cart 账号历史切换面板
#!author=Ah Long
#!category=XBOX

[Host]
addtocart.com = 198.18.0.1
clearlist.com = 198.18.0.1
syncxbox.com = 198.18.0.1
addmsgames.com = 198.18.0.1
carthistory.com = 198.18.0.1

[Script]
xbox_web_runner = type=http-request, pattern=^https?://addtocart\.com/?$, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/NewAddToCart_Web.js, timeout=300
xbox_clear_web = type=http-request, pattern=^https?://clearlist\.com/?$, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/ClearXboxProductList_Web.js, timeout=10
xbox_sync_cloud = type=http-request, pattern=^https?://syncxbox\.com/?$, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/SyncXboxCloud.js, timeout=30
xbox_multiregion_selector = type=http-request, pattern=^https?://addmsgames\.com/?$, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/AddMsGames.js, timeout=30
xbox_multiregion_us = type=http-request, pattern=^https?://addmsgames\.com/\?region=US$, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/AddMsGames.js, timeout=300
xbox_multiregion_ng = type=http-request, pattern=^https?://addmsgames\.com/\?region=NG$, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/AddMsGames.js, timeout=300
xbox_multiregion_ar = type=http-request, pattern=^https?://addmsgames\.com/\?region=AR$, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/AddMsGames.js, timeout=300
xbox_cart_history = type=http-request, pattern=^https?://carthistory\.com/, script-path=https://gitea.dragonisheep.com/XXhaos/Surge/raw/branch/master/Scripts/CartHistorySwitcher.js, timeout=10

[MITM]
hostname = %APPEND% addtocart.com, clearlist.com, clearapprovalcartid.com, syncxbox.com, addmsgames.com, carthistory.com