How coderyjc/deepseek2markdown works
Project type and purpose
• This is a Chrome extension (“DeepSeek2Markdown”) whose goal is to extract chat dialogues from DeepSeek in the browser and export them as Markdown, PDF, or image files.
• Key features from the README: a popup UI for export options, background logic to orchestrate extraction, content script to scrape the page DOM, and a small library (canvas2image.js) to generate images.
File structure
• src/background.js: extension’s background service worker handling long-lived tasks and message routing.
• src/content.js: content script injected into DeepSeek pages, responsible for DOM traversal and extraction of chat content.
• src/lib/canvas2image.js: a utility library used to render extracted content into an image.
• README files and doc/ directory: documentation and illustrative screenshots.
README for additional insights
• The README describes user flow: load extension → visit DeepSeek page → click popup → choose export format → extension scrapes DOM → processes into Markdown/PDF/image → triggers download.
• There is no backend server; all operations happen client-side using Chrome Extension APIs.