mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-21 22:30:46 +08:00
The upstream wloc.js already applies randomRadius. Surf/Loon/Stash/ Shadowrocket modules now pass the perturbation argument through so users can configure it in the proxy client UI (QX rewrite cannot carry args).
19 lines
1.2 KiB
Plaintext
19 lines
1.2 KiB
Plaintext
#!name=Apple WLOC 定位修改
|
|
#!desc=Location Spoofer 第三方代理模块
|
|
#!author=xweiba
|
|
#!homepage=https://github.com/xweiba/location-spoofer
|
|
|
|
[Argument]
|
|
longitude = input, "113.94114", tag=经度(在线选点优先)
|
|
latitude = input, "22.544577", tag=纬度(在线选点优先)
|
|
accuracy = input, "25", tag=精度(米)
|
|
randomRadius = input, "0", tag=扰动半径(米,0为关闭)
|
|
logLevel = select, "info", "off", "error", "warn", "debug", "all", tag=日志级别
|
|
|
|
[Script]
|
|
http-response ^https?:\/\/(?:gs-loc(?:-cn)?\.apple\.com|gsp-ssl\.ls\.apple\.com|bluedot\.is\.autonavi\.com(?:\.gds\.alibabadns\.com)?)\/clls\/wloc script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc.js, requires-body=true, binary-body-mode=true, timeout=30, tag=Apple WLOC, argument=[{longitude},{latitude},{accuracy},{randomRadius},{logLevel}]
|
|
http-request ^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version) script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js, timeout=10, tag=WLOC Settings
|
|
|
|
[MITM]
|
|
hostname = gs-loc.apple.com, gs-loc-cn.apple.com, gsp-ssl.ls.apple.com, bluedot.is.autonavi.com, bluedot.is.autonavi.com.gds.alibabadns.com
|