methods
This commit is contained in:
1 parent
4a2974098f
commit
d4fc121506
10 files changed
+23
-13
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user