id=starter-hello-badge
name=Starter HOR EYE US Badge
version=1.0.0
author=beginner_builder
description=Clean HOR EYE US starter extension showing Shadow DOM HUD isolation, live toggle state, and teardown via prowseirExt.onCleanup.
site_pattern=*
global=1
enabled=1
---CODE---
(function () {
if (location.protocol === "prowseir:" || location.protocol === "about:") return;
if (window.__starterHoreyeusMounted) return;
window.__starterHoreyeusMounted = true;
const host = document.createElement("div");
host.setAttribute("data-prowseir-ext", (typeof prowseirExt !== "undefined" && prowseirExt.id) || "starter-hello-badge");
const shadow = host.attachShadow({ mode: "open" });
shadow.innerHTML = `
`;
const btn = shadow.getElementById("badge");
if (btn) btn.addEventListener("click", () => host.remove());
(document.documentElement || document.body).appendChild(host);
if (typeof prowseirExt !== "undefined" && typeof prowseirExt.onCleanup === "function") {
prowseirExt.onCleanup(() => {
host.remove();
delete window.__starterHoreyeusMounted;
});
}
})();
---CSS---
/* Optional page-level CSS goes here */