This commit is contained in:
lda committed 2025-12-18 22:47:45 +07:00
1 parent 4a2974098f
commit d4fc121506
10 files changed
+23 -13

No files matched your search

+8 -4
View File
@@ -59,10 +59,13 @@
newTab.document.body.style.backgroundColor =
getComputedStyle(document.body).backgroundColor;
const f =
document.querySelector(".trail-container");
if (f)
newTab.document.body.innerHTML += f.outerHTML;
document
.querySelectorAll("body > *:not(script)")
.forEach((f) =>
newTab.document.body.appendChild(
f.cloneNode(true)
)
);
// maybe just replace the whole document with this one and then use API to check length
// i aint doing that
@@ -79,6 +82,7 @@
)
);
newTab.document.adoptedStyleSheets.push(st);
newTab.document.close();
}
}
});