[FindMy] 隐藏查找APP中无法移除的异常设备

This commit is contained in:
blackmatrix7 2024-05-22 16:25:59 +08:00
parent 510886274c
commit 2707839dae
8 changed files with 170 additions and 0 deletions

View File

@ -723,6 +723,30 @@
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/testflight/icon/testflight.png",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/testflight/icon/testflight.png"
]
},
{
"id": "blackmatrix7.findmy",
"name": "Find My",
"keys": [
"find_my_device_discovery_id"
],
"author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/findmy",
"icons": [
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/icon/findmy_gray.jpg",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/icon/findmy.jpg"
],
"settings": [
{
"id": "find_my_device_discovery_id",
"name": "Find My设备ID",
"val": "",
"type": "textarea",
"placeholder": "",
"autoGrow": true,
"desc": "Find My设备ID多个设备以;分隔"
}
]
}
]
}

27
script/findmy/README.md Normal file
View File

@ -0,0 +1,27 @@
# Find My
如果你在维修AirPods时忘了将耳机解绑并且初次绑定耳机的手机或平板也不存在了那你在”查找“APP中将永久获得一个无法删除的无效AirPods。
维修几次就多几台AirPods。
这个脚本就是用来解决这个问题的用于隐藏”查找“APP中无法移除的无效设备。
希望苹果早点解决这个Bug那这脚本也就不需要存在了。
## 部署
在不同的客户端,安装模块、重写、插件、覆写。
## 使用
启用脚本后在”查找“APP中再移除一次之前无法移除的设备即可。
如果误操作导致移除了正常设备需要在BoxJS中删除记录的数据。
## 其他
脚本并不能真正的帮你从苹果的服务器移除无效的设备而是将移除过程的设备Id记录下来再下次请求设备时将对应设备隐藏起来。
隐藏这个操作只对当前使用脚本的设备有效,如果有多个设备,需要每个设备都操作一次。
在iCloud网页端依旧会显示那些无法移除的无效设备。

84
script/findmy/findmy.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,12 @@
#!name=Find My
#!desc=移除“查找”中无效的设备
#!author=blackmatrix7
#!homepage=https://github.com/blackmatrix7/ios_rule_script
#!icon=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/icon/findmy.jpg
[Script]
http-request ^https:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/remove$ requires-body=1,timeout=30,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js,tag=查找_获取无效设备Id
http-response ^https?:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/(initClient|refreshClient)$ requires-body=1,timeout=30,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js,tag=查找_移除无效设备
[MITM]
hostname = p222-fmipmobile.icloud.com.cn

View File

@ -0,0 +1,13 @@
#!name=Find My
#!desc=移除“查找”中无效的设备
#!author=blackmatrix7
#!homepage=https://github.com/blackmatrix7/ios_rule_script
#!category=blackmatrix7
[Script]
查找_获取无效设备Id = type=http-request,requires-body=1,max-size=0,pattern=^https:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/remove$,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js,script-update-interval=86400
查找_移除无效设备 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/(initClient|refreshClient)$,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js,script-update-interval=86400
[MITM]
hostname = p222-fmipmobile.icloud.com.cn

View File

@ -0,0 +1,10 @@
# Find My
# 移除“查找”中无效的设备
# 查找_获取无效设备Id
^https:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/remove$ url script-request-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js
# 查找_移除无效设备
^https?:\/\/p222-fmipmobile\.icloud\.com\.cn\/fmipservice\/device\/\d+\/(initClient|refreshClient)$ url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/findmy/findmy.js
hostname = p222-fmipmobile.icloud.com.cn

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB