feat: 新增 Grok 图像节点、前端 UI 增强、重构 nano-banana 系列
- 新增 Grok Image 节点及客户端 - 新增 save_image_format 节点 - 新增前端 JS 扩展:画笔工具、点阵网格、侧边栏隐藏、资源切换、重命名等 - 重构 nano-banana 节点,移除 pro 版本 - 移除 multi_res_preview 节点 - 新增 http_error 工具模块 - 各客户端和节点优化改进 Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { app } from "../../../scripts/app.js";
|
||||
|
||||
app.registerExtension({
|
||||
name: "o1key.renameConsole",
|
||||
async setup() {
|
||||
const rename = () => {
|
||||
document.querySelectorAll(".side-bar-button, [class*='sidebar'] button, .p-togglebutton, button").forEach(btn => {
|
||||
const label = btn.getAttribute("aria-label") || "";
|
||||
const text = btn.textContent || "";
|
||||
if (label === "控制台" || label === "Console" || text.trim() === "控制台" || text.trim() === "Console") {
|
||||
if (label === "控制台" || label === "Console") {
|
||||
btn.setAttribute("aria-label", "日志");
|
||||
}
|
||||
const span = btn.querySelector("span");
|
||||
if (span && (span.textContent.trim() === "控制台" || span.textContent.trim() === "Console")) {
|
||||
span.textContent = "日志";
|
||||
} else if (!span && (btn.textContent.trim() === "控制台" || btn.textContent.trim() === "Console")) {
|
||||
btn.textContent = "日志";
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const observer = new MutationObserver(rename);
|
||||
observer.observe(document.body, { childList: true, subtree: true });
|
||||
setTimeout(rename, 1000);
|
||||
setTimeout(rename, 3000);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user