mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-16 21:43:33 +08:00
🛸 Sync 2026-11-16 20:57:24
This commit is contained in:
1 parent
649a52f1ad
commit
a0b78ece6c
2 files changed
+2
-8
No files matched your search
@@ -49,13 +49,6 @@
|
||||
location.href = vue_prefix;
|
||||
}
|
||||
}
|
||||
setTimeout(() => {
|
||||
document.querySelectorAll('.item_container .item').forEach(el => {
|
||||
if (el.textContent.trim() === '软件源配置' || el.textContent.trim() === '系统维护') {
|
||||
el.remove(); // 或 el.style.display = 'none';
|
||||
}
|
||||
});
|
||||
}, 800);
|
||||
})();
|
||||
</script>
|
||||
<div id="app">
|
||||
|
||||
@@ -16,7 +16,8 @@ sed -i -E '
|
||||
|
||||
# 4. 彻底移除软件源配置(tool-source)入口与“恢复默认八项”按钮
|
||||
s/,\{id:"tool-source"[^}]*\}|,"tool-source"//g
|
||||
s/get favorites\(\)\{return ([^}]*\.favorites)\}/get favorites(){return \1.filter(y=>y!=="tool-source")}/
|
||||
s/,\{id:"tool-firmware"[^}]*\}|,"tool-firmware"//g
|
||||
s/,\{id:"tool-sandbox"[^}]*\}|,"tool-sandbox"//g
|
||||
s/,[a-zA-Z0-9_$]+\("button",\{[^}]*"data-shortcut-restore":""\},[^}]*\("恢复默认八项","Restore eight defaults"\)\),1\)//
|
||||
|
||||
# 5. 自定义链接支持 / 开头的绝对路径(保存时转为 http://localhost/... 以通过后端校验,展示与跳转时还原为 /...)
|
||||
|
||||
Reference in new issue
Block a user