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

Function downloadPdf

contents/jianshu.tsx:186–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184 }
185
186 function downloadPdf() {
187 const article = document.querySelector<HTMLElement>("section.ouvJEz")
188 if (article) {
189 Print.print(article, { title: articleTitle })
190 .then(() => console.log("Printing complete"))
191 .catch((error) => console.error("Printing failed:", error))
192 }
193 }
194
195 function downloadWord() {
196 const dom = document.querySelector("section.ouvJEz")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected