From d35d5c788a54c6c045089a68d6dbd4fafded952c Mon Sep 17 00:00:00 2001 From: xweiba Date: Tue, 1 Sep 2026 17:42:34 +0800 Subject: [PATCH] feat: vendor upstream modules verbatim, mirror via gh-proxy All five module files now match Yu9191/wloc exactly (author, description, icon, wloc-settings/save pattern, argument config). The only difference is the mirror variant wraps GitHub Raw URLs in gh-proxy for regions where raw is unreachable. --- Resources/ThirdPartyProxyModules/wloc.conf | 6 +++--- Resources/ThirdPartyProxyModules/wloc.lpx | 7 ++++--- Resources/ThirdPartyProxyModules/wloc.module | 4 ++-- Resources/ThirdPartyProxyModules/wloc.sgmodule | 6 +++--- Resources/ThirdPartyProxyModules/wloc.stoverride | 7 ++++--- ThirdParty/WlocScripts/modules/direct/wloc.conf | 8 ++++---- ThirdParty/WlocScripts/modules/direct/wloc.lpx | 10 ++++++---- ThirdParty/WlocScripts/modules/direct/wloc.module | 2 +- ThirdParty/WlocScripts/modules/direct/wloc.sgmodule | 8 ++++---- ThirdParty/WlocScripts/modules/direct/wloc.stoverride | 9 +++++---- 10 files changed, 36 insertions(+), 31 deletions(-) diff --git a/Resources/ThirdPartyProxyModules/wloc.conf b/Resources/ThirdPartyProxyModules/wloc.conf index cb5b738..c84336a 100644 --- a/Resources/ThirdPartyProxyModules/wloc.conf +++ b/Resources/ThirdPartyProxyModules/wloc.conf @@ -1,11 +1,11 @@ #!name=Apple WLOC 定位修改 #!desc=修改 Apple 网络定位返回坐标 | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f | 选点页面: https://wloc-pages.pages.dev/ -#!author=xweiba -#!homepage=https://github.com/xweiba/location-spoofer +#!author=Yu9191 Rewrite +#!homepage=https://github.com/Yu9191/wloc [rewrite_local] ^https?:\/\/(?:gs-loc(?:-cn)?\.apple\.com|gsp-ssl\.ls\.apple\.com|bluedot\.is\.autonavi\.com(?:\.gds\.alibabadns\.com)?)\/clls\/wloc url script-response-body https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc.js -^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version) url script-echo-response https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js +^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save url script-echo-response https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js [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 diff --git a/Resources/ThirdPartyProxyModules/wloc.lpx b/Resources/ThirdPartyProxyModules/wloc.lpx index beee74e..8c264c8 100644 --- a/Resources/ThirdPartyProxyModules/wloc.lpx +++ b/Resources/ThirdPartyProxyModules/wloc.lpx @@ -1,7 +1,8 @@ #!name=Apple WLOC 定位修改 #!desc=修改 Apple 网络定位返回坐标 | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f -#!author=xweiba -#!homepage=https://github.com/xweiba/location-spoofer +#!icon=https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/wloc.jpg +#!author=Yu9191 Rewrite +#!homepage=https://github.com/Yu9191/wloc #!openUrl=https://wloc-pages.pages.dev/ [Argument] @@ -13,7 +14,7 @@ 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://gh-proxy.org/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://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js, timeout=10, tag=WLOC Settings +http-request ^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save script-path=https://gh-proxy.org/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 diff --git a/Resources/ThirdPartyProxyModules/wloc.module b/Resources/ThirdPartyProxyModules/wloc.module index 0178110..cf2f1d5 100644 --- a/Resources/ThirdPartyProxyModules/wloc.module +++ b/Resources/ThirdPartyProxyModules/wloc.module @@ -2,12 +2,12 @@ #!desc=修改 Apple 网络定位返回坐标 (Shadowrocket 小火箭) | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f | 选点页面: https://wloc-pages.pages.dev/ #!author=Yu9191 Rewrite #!homepage=https://github.com/Yu9191/wloc -#!icon=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/wloc.jpg +#!icon=https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/wloc.jpg #!category=Tools [Script] Apple WLOC = type=http-response,pattern=^https?:\/\/(?:gs-loc(?:-cn)?\.apple\.com|gsp-ssl\.ls\.apple\.com|bluedot\.is\.autonavi\.com(?:\.gds\.alibabadns\.com)?)\/clls\/wloc,requires-body=1,binary-body-mode=1,max-size=0,timeout=30,script-path=https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc.js,argument=longitude=113.94114&latitude=22.544577&accuracy=25&randomRadius=0&logLevel=info -WLOC Settings = type=http-request,pattern=^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version),requires-body=0,max-size=0,timeout=10,script-path=https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js +WLOC Settings = type=http-request,pattern=^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save,requires-body=0,max-size=0,timeout=10,script-path=https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js [MITM] hostname = %APPEND% 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 diff --git a/Resources/ThirdPartyProxyModules/wloc.sgmodule b/Resources/ThirdPartyProxyModules/wloc.sgmodule index 37cafa8..08ad1c5 100644 --- a/Resources/ThirdPartyProxyModules/wloc.sgmodule +++ b/Resources/ThirdPartyProxyModules/wloc.sgmodule @@ -1,14 +1,14 @@ #!name=Apple WLOC 定位修改 #!desc=修改 Apple 网络定位返回坐标 | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f | 选点页面: https://wloc-pages.pages.dev/ -#!author=xweiba -#!homepage=https://github.com/xweiba/location-spoofer +#!author=Yu9191 Rewrite +#!homepage=https://github.com/Yu9191/wloc #!category=Tools #!arguments=经度:113.94114, 纬度:22.544577, 精度:25, 扰动半径:0, 日志级别:info #!arguments-desc=经度/纬度: 默认坐标(在线选点储存后优先)\n精度: GPS精度(米)\n扰动半径: 每次响应在目标点周围随机偏移的最大距离(米),0为关闭\n日志级别: off/error/warn/info/debug/all\n\n使用方法: 打开选点页面 -> 选位置 -> 储存到设备 [Script] Apple WLOC = type=http-response, pattern="^https?:\/\/(?:gs-loc(?:-cn)?\.apple\.com|gsp-ssl\.ls\.apple\.com|bluedot\.is\.autonavi\.com(?:\.gds\.alibabadns\.com)?)\/clls\/wloc", requires-body=1, binary-body-mode=1, max-size=0, timeout=30, script-path=https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc.js, argument=longitude={{{经度}}}&latitude={{{纬度}}}&accuracy={{{精度}}}&randomRadius={{{扰动半径}}}&logLevel={{{日志级别}}} -WLOC Settings = type=http-request, pattern="^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version)", requires-body=0, max-size=0, timeout=10, script-path=https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js +WLOC Settings = type=http-request, pattern="^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save", requires-body=0, max-size=0, timeout=10, script-path=https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js [MITM] hostname = %APPEND% 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 diff --git a/Resources/ThirdPartyProxyModules/wloc.stoverride b/Resources/ThirdPartyProxyModules/wloc.stoverride index 9ff85d9..523f0f8 100644 --- a/Resources/ThirdPartyProxyModules/wloc.stoverride +++ b/Resources/ThirdPartyProxyModules/wloc.stoverride @@ -1,7 +1,8 @@ name: Apple WLOC 定位修改 desc: "修改 Apple 网络定位返回坐标 | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f | 选点页面: https://wloc-pages.pages.dev/" -author: xweiba -homepage: https://github.com/xweiba/location-spoofer +author: Yu9191 Rewrite +homepage: https://github.com/Yu9191/wloc +icon: https://gh-proxy.org/https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/wloc.jpg category: Tools http: @@ -20,7 +21,7 @@ http: max-size: 0 timeout: 30 argument: longitude=113.94114&latitude=22.544577&accuracy=25&randomRadius=0&logLevel=info - - match: ^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version) + - match: ^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save name: WLOC.Settings type: request require-body: false diff --git a/ThirdParty/WlocScripts/modules/direct/wloc.conf b/ThirdParty/WlocScripts/modules/direct/wloc.conf index b905ff5..000afd9 100644 --- a/ThirdParty/WlocScripts/modules/direct/wloc.conf +++ b/ThirdParty/WlocScripts/modules/direct/wloc.conf @@ -1,11 +1,11 @@ #!name=Apple WLOC 定位修改 -#!desc=Location Spoofer 第三方代理模块 -#!author=xweiba -#!homepage=https://github.com/xweiba/location-spoofer +#!desc=修改 Apple 网络定位返回坐标 | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f | 选点页面: https://wloc-pages.pages.dev/ +#!author=Yu9191 Rewrite +#!homepage=https://github.com/Yu9191/wloc [rewrite_local] ^https?:\/\/(?:gs-loc(?:-cn)?\.apple\.com|gsp-ssl\.ls\.apple\.com|bluedot\.is\.autonavi\.com(?:\.gds\.alibabadns\.com)?)\/clls\/wloc url script-response-body https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc.js -^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version) url script-echo-response https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js +^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save url script-echo-response https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js [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 diff --git a/ThirdParty/WlocScripts/modules/direct/wloc.lpx b/ThirdParty/WlocScripts/modules/direct/wloc.lpx index 835aff7..ce82fe7 100644 --- a/ThirdParty/WlocScripts/modules/direct/wloc.lpx +++ b/ThirdParty/WlocScripts/modules/direct/wloc.lpx @@ -1,7 +1,9 @@ #!name=Apple WLOC 定位修改 -#!desc=Location Spoofer 第三方代理模块 -#!author=xweiba -#!homepage=https://github.com/xweiba/location-spoofer +#!desc=修改 Apple 网络定位返回坐标 | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f +#!icon=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/wloc.jpg +#!author=Yu9191 Rewrite +#!homepage=https://github.com/Yu9191/wloc +#!openUrl=https://wloc-pages.pages.dev/ [Argument] longitude = input, "113.94114", tag=经度(在线选点优先) @@ -12,7 +14,7 @@ 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 +http-request ^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save 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 diff --git a/ThirdParty/WlocScripts/modules/direct/wloc.module b/ThirdParty/WlocScripts/modules/direct/wloc.module index c012aa3..1d2e415 100644 --- a/ThirdParty/WlocScripts/modules/direct/wloc.module +++ b/ThirdParty/WlocScripts/modules/direct/wloc.module @@ -7,7 +7,7 @@ [Script] Apple WLOC = type=http-response,pattern=^https?:\/\/(?:gs-loc(?:-cn)?\.apple\.com|gsp-ssl\.ls\.apple\.com|bluedot\.is\.autonavi\.com(?:\.gds\.alibabadns\.com)?)\/clls\/wloc,requires-body=1,binary-body-mode=1,max-size=0,timeout=30,script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc.js,argument=longitude=113.94114&latitude=22.544577&accuracy=25&randomRadius=0&logLevel=info -WLOC Settings = type=http-request,pattern=^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version),requires-body=0,max-size=0,timeout=10,script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js +WLOC Settings = type=http-request,pattern=^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save,requires-body=0,max-size=0,timeout=10,script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js [MITM] hostname = %APPEND% 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 diff --git a/ThirdParty/WlocScripts/modules/direct/wloc.sgmodule b/ThirdParty/WlocScripts/modules/direct/wloc.sgmodule index 88e7b68..428df43 100644 --- a/ThirdParty/WlocScripts/modules/direct/wloc.sgmodule +++ b/ThirdParty/WlocScripts/modules/direct/wloc.sgmodule @@ -1,14 +1,14 @@ #!name=Apple WLOC 定位修改 -#!desc=Location Spoofer 第三方代理模块 -#!author=xweiba -#!homepage=https://github.com/xweiba/location-spoofer +#!desc=修改 Apple 网络定位返回坐标 | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f | 选点页面: https://wloc-pages.pages.dev/ +#!author=Yu9191 Rewrite +#!homepage=https://github.com/Yu9191/wloc #!category=Tools #!arguments=经度:113.94114, 纬度:22.544577, 精度:25, 扰动半径:0, 日志级别:info #!arguments-desc=经度/纬度: 默认坐标(在线选点储存后优先)\n精度: GPS精度(米)\n扰动半径: 每次响应在目标点周围随机偏移的最大距离(米),0为关闭\n日志级别: off/error/warn/info/debug/all\n\n使用方法: 打开选点页面 -> 选位置 -> 储存到设备 [Script] Apple WLOC = type=http-response, pattern="^https?:\/\/(?:gs-loc(?:-cn)?\.apple\.com|gsp-ssl\.ls\.apple\.com|bluedot\.is\.autonavi\.com(?:\.gds\.alibabadns\.com)?)\/clls\/wloc", requires-body=1, binary-body-mode=1, max-size=0, timeout=30, script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc.js, argument=longitude={{{经度}}}&latitude={{{纬度}}}&accuracy={{{精度}}}&randomRadius={{{扰动半径}}}&logLevel={{{日志级别}}} -WLOC Settings = type=http-request, pattern="^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version)", requires-body=0, max-size=0, timeout=10, script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js +WLOC Settings = type=http-request, pattern="^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save", requires-body=0, max-size=0, timeout=10, script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js [MITM] hostname = %APPEND% 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 diff --git a/ThirdParty/WlocScripts/modules/direct/wloc.stoverride b/ThirdParty/WlocScripts/modules/direct/wloc.stoverride index f198b4b..21b03d3 100644 --- a/ThirdParty/WlocScripts/modules/direct/wloc.stoverride +++ b/ThirdParty/WlocScripts/modules/direct/wloc.stoverride @@ -1,7 +1,8 @@ name: Apple WLOC 定位修改 -desc: Location Spoofer 第三方代理模块 -author: xweiba -homepage: https://github.com/xweiba/location-spoofer +desc: "修改 Apple 网络定位返回坐标 | 快捷指令(推荐): 设置地理位置 https://www.icloud.com/shortcuts/a82717d8fdad4e6280866fcf911173f7 清理恢复位置 https://www.icloud.com/shortcuts/f42632d406504f24a2cd163af4fe012f | 选点页面: https://wloc-pages.pages.dev/" +author: Yu9191 Rewrite +homepage: https://github.com/Yu9191/wloc +icon: https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/wloc.jpg category: Tools http: @@ -20,7 +21,7 @@ http: max-size: 0 timeout: 30 argument: longitude=113.94114&latitude=22.544577&accuracy=25&randomRadius=0&logLevel=info - - match: ^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/(save|version) + - match: ^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save name: WLOC.Settings type: request require-body: false