🦄 Sync 2026-11-16 21:12:06
Merge-upstream / merge (push) Waiting to run

This commit is contained in:
github-actions[bot] committed 2026-11-16 21:12:06 +08:00
1 parent 726716720b
commit f83cdc9bd5
2 files changed
+4 -4

No files matched your search

@@ -15,8 +15,8 @@ sed -i -E '
s/,"softSourceFailed"|,softSourceFailed:\[[^]]*\]|:[^:?]*==="softSourceFailed"\?"source"//g
# 4. 移除指定工具入口(如 tool-source, tool-firmware, tool-sandbox)与“恢复默认八项”按钮
s/,\{id:"tool-(source|firmware|sandbox)"[^}]*\}|,"tool-(source|firmware|sandbox)"//g
s/get favorites\(\)\{return ([^}]*\.favorites)\}/get favorites(){return \1.filter(y=>!["tool-source","tool-firmware","tool-sandbox"].includes(y))}/
s/,\{id:"tool-(source|firmware|sandbox)"[^}]*\}|,"tool-(source|firmware|sandbox)"//g
s/get favorites\(\)\{return ([^}]*\.favorites)\}/get favorites(){return \1.filter(y=>!["tool-source","tool-firmware","tool-sandbox"].includes(y))}/
s/,[a-zA-Z0-9_$]+\("button",\{[^}]*"data-shortcut-restore":""\},[^}]*\("恢复默认八项","Restore eight defaults"\)\),1\)//
# 5. 自定义链接支持 / 开头的绝对路径(保存时转为 http://localhost/... 以通过后端校验,展示与跳转时还原为 /...)