feat: shadow

This commit is contained in:
2025-11-07 07:26:02 +01:00
parent b5158d9d40
commit f7e8d3c5bb
16 changed files with 35 additions and 88 deletions

View File

@@ -1,20 +1 @@
(() => {
var t,
n = document.createElement("script");
!("noModule" in n) &&
"onbeforeload" in n &&
((t = !1),
document.addEventListener(
"beforeload",
function (e) {
if (e.target === n) t = !0;
else if (!e.target.hasAttribute("nomodule") || !t) return;
e.preventDefault();
},
!0,
),
(n.type = "module"),
(n.src = "."),
document.head.appendChild(n),
n.remove());
})();
(()=>{var t,n=document.createElement("script");!("noModule"in n)&&"onbeforeload"in n&&(t=!1,document.addEventListener("beforeload",function(e){if(e.target===n)t=!0;else if(!e.target.hasAttribute("nomodule")||!t)return;e.preventDefault()},!0),n.type="module",n.src=".",document.head.appendChild(n),n.remove())})();