diff --git a/proxychain/responsemodifiers/vendor/generate_readable_outline.html b/proxychain/responsemodifiers/vendor/generate_readable_outline.html index fe6f507..5619e96 100644 --- a/proxychain/responsemodifiers/vendor/generate_readable_outline.html +++ b/proxychain/responsemodifiers/vendor/generate_readable_outline.html @@ -23,6 +23,26 @@ } }; handleThemeChange(); + function prepareForPrint() { + document.getElementById("readingtime").innerText = + "Date Accessed: " + + new Date().toLocaleDateString("en-US", { + year: "numeric", + month: "long", + day: "numeric", + }); + [...document.querySelectorAll(".noprint")].forEach((e) => + e.classList.toggle("hidden") + ); + window.addEventListener("afterprint", handleAfterPrint); + window.print(); + } + function handleAfterPrint() { + [...document.querySelectorAll(".noprint")].forEach((e) => + e.classList.toggle("hidden") + ); + window.removeEventListener("afterprint", handleAfterPrint); + }