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

Function downloadPdf

contents/baidu.tsx:73–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 function downloadPdf() {
74 const article = document.querySelector<HTMLElement>(
75 isBaijiahao ? "#ssr-content .EaCvy" : ".wd-ai-index-pc"
76 )
77 if (article) {
78 Print.print(article, { title: articleTitle })
79 .then(() => console.log("Printing complete"))
80 .catch((error) => console.error("Printing failed:", error))
81 }
82 }
83
84 function downloadWord() {
85 const dom = document.querySelector(

Callers

nothing calls this directly

Calls 1

printMethod · 0.80

Tested by

no test coverage detected