MCPcopy
hub / github.com/027xiguapi/code-box / downloadPdf

Function downloadPdf

contents/paywallbuster.tsx:84–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 }
83
84 function downloadPdf() {
85 const article = document.querySelector<HTMLElement>("article")
86 if (article) {
87 Print.print(article, { title: articleTitle })
88 .then(() => console.log("Printing complete"))
89 .catch((error) => console.error("Printing failed:", error))
90 }
91 }
92
93 function downloadWord() {
94 const dom = document.querySelector("article")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected