Replace the prior release tree with the current plugin, frontend, tests, and documentation. Document retired node IDs and the public Gitea update source.
27 lines
928 B
JavaScript
27 lines
928 B
JavaScript
import { app } from "../../../scripts/app.js";
|
|
|
|
app.registerExtension({
|
|
name: "o1key.hideSidebarItems",
|
|
async setup() {
|
|
if (document.querySelector("#o1key-hidden-ui-styles")) return;
|
|
|
|
const style = document.createElement("style");
|
|
style.id = "o1key-hidden-ui-styles";
|
|
style.textContent = `
|
|
.templates-tab-button,
|
|
.apps-tab-button,
|
|
.model-library-tab-button,
|
|
.node-library-tab-button,
|
|
.o1key-cases-tab-button,
|
|
.comfy-help-center-btn,
|
|
.comfy-command-menu li:has([class~="icon-[comfy--template]"]),
|
|
.comfy-command-menu li:has(.mdi-help-circle-outline),
|
|
.p-dialog-mask:has(.pi-google):has(.pi-github),
|
|
[role="dialog"]:has(.pi-google):has(.pi-github) {
|
|
display: none !important;
|
|
}
|
|
`;
|
|
document.head.appendChild(style);
|
|
},
|
|
});
|