Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blueberrycongee/DeepSeek-Chat-Exporter
/ functions
Functions
19 in github.com/blueberrycongee/DeepSeek-Chat-Exporter
⨍
Functions
19
◇
Types & classes
0
↓ 3 callers
Function
getExportFilenameBase
* Builds a shared filename base for exports using the chat title when available * @returns {string} Filename base without an extension
deepseek_chat_exporter.user.js:283
↓ 2 callers
Function
esc
(s)
deepseek_chat_exporter.user.js:341
↓ 2 callers
Function
generateMdContent
* Generates the complete markdown content from all messages * @returns {string} Complete markdown formatted chat history
deepseek_chat_exporter.user.js:230
↓ 2 callers
Function
getChatTitle
* Extracts the chat title from the page * @returns {string|null} The chat title if found, null otherwise
deepseek_chat_exporter.user.js:221
↓ 2 callers
Function
navigateFiberPathFromElement
* Navigate a React fiber from a DOM element using a path string * Path format mirrors React DevTools output from __scanReact, e.g. "$0.return.child
deepseek_chat_exporter.user.js:98
↓ 1 callers
Function
createExportMenu
* Creates and attaches the export menu buttons to the page
deepseek_chat_exporter.user.js:452
↓ 1 callers
Function
extractFinalAnswer
* Extracts the final answer content from React fiber's memoizedProps * @param {HTMLElement} node - The DOM node containing the answer * @returns
deepseek_chat_exporter.user.js:153
↓ 1 callers
Function
extractSearchOrThinking
* Extracts search or thinking time information from a node * @param {HTMLElement} node - The DOM node to extract from * @returns {string|null} M
deepseek_chat_exporter.user.js:87
↓ 1 callers
Function
extractThinkingChain
* Extracts and formats the AI's thinking chain as blockquotes * @param {HTMLElement} node - The DOM node containing the thinking chain * @return
deepseek_chat_exporter.user.js:126
↓ 1 callers
Function
getFormattedTimestamp
* Generates a filename-safe ISO 8601 timestamp * @returns {string} Formatted timestamp YYYY-MM-DD_HH_MM_SS
deepseek_chat_exporter.user.js:272
↓ 1 callers
Function
getOrderedMessages
* Collects and formats all messages in the chat in chronological order * @returns {string[]} Array of markdown formatted messages
deepseek_chat_exporter.user.js:184
↓ 1 callers
Function
getUserMessage
* Gets the message content if the node contains a user message, null otherwise * @param {HTMLElement} node - The DOM node to check * @returns {s
deepseek_chat_exporter.user.js:68
↓ 1 callers
Function
init
* Initializes the exporter by waiting for the chat container to be ready * and then creating the export menu
deepseek_chat_exporter.user.js:645
↓ 1 callers
Function
isAIMessage
* Checks if a DOM node represents an AI message * @param {HTMLElement} node - The DOM node to check * @returns {boolean} True if the node is an
deepseek_chat_exporter.user.js:78
↓ 1 callers
Function
makeFilenameSafe
* Creates a filename-safe version of a string * @param {string} str - The string to make filename-safe * @param {number} maxLength - Maximum len
deepseek_chat_exporter.user.js:258
↓ 1 callers
Function
waitReady
()
deepseek_chat_exporter.user.js:417
Function
exportMarkdown
* Exports the chat history as a markdown file * Handles math expressions and creates a downloadable .md file
deepseek_chat_exporter.user.js:297
Function
exportPDF
* Exports the chat history as a PDF * Creates a styled HTML version and opens the browser's print dialog
deepseek_chat_exporter.user.js:317
Function
exportPNG
* Exports the chat history as a PNG image * Creates a high-resolution screenshot of the chat content
deepseek_chat_exporter.user.js:363