Claude Project Files Extractor

Download/extract all files from a Claude project as a single ZIP

这些是此脚本变更过代码的版本。 显示所有版本。

  • v3.0 2025-07-08

    Claude Project Files Extractor - Changelog

    Version 3.0 - Major Overhaul (2025-01-08)

    🔧 Critical Fixes

    • Fixed filename extraction - No more "Unknown File.txt" or mangled filenames
    • Improved content detection - Now properly extracts actual file content instead of UI text
    • Enhanced modal handling - More reliable opening/closing of file preview modals
    • Better file type detection - Automatically detects and preserves proper file extensions

    New Features

    • Smart filename parsing - Uses regex patterns to extract clean filenames from various UI formats
    • Automatic file type detection - Detects .json, .xml, .md, .csv, .pdf.txt, .eml.txt, etc.
    • Enhanced content extraction - Multiple fallback strategies for finding file content in modals
    • Detailed logging - Comprehensive console output for debugging and progress tracking
    • Improved metadata - Export includes detailed file information and original names

    🛠 Technical Improvements

    • Better element detection - More sophisticated selectors for finding file elements
    • Robust modal interaction - Multiple strategies for opening and closing modals
    • Enhanced error handling - Graceful handling of failed extractions
    • Improved file filtering - Better logic to identify actual files vs UI elements
    • Optimized timing - Better wait periods for modal loading and content extraction

    🎯 What's Fixed

    • Filenames like "CompanyFile.xml1_.txt" → Now extracts proper names like "CompanyFile.xml"
    • Content extraction from various modal layouts and content containers
    • File type detection from both filename patterns and content analysis
    • Modal closing issues that could interrupt the extraction process
    • Memory leaks and performance issues during bulk extraction

    🔍 Debugging Improvements

    • Added step-by-step console logging for each extraction phase
    • File-by-file progress tracking with detailed status updates
    • Error reporting with specific failure reasons
    • Content length validation and quality checks

    Version 2.0 - Initial Release

    • Basic file extraction functionality
    • ZIP creation and download
    • Simple modal interaction
    • Basic filename detection

    Installation & Usage

    1. Install the userscript in Tampermonkey/Greasemonkey
    2. Navigate to any Claude project with uploaded files
    3. Click the "📁 Export Project Files" button (bottom-right corner)
    4. Wait for extraction to complete
    5. Download will start automatically as a ZIP file

    Troubleshooting

    If files aren't extracting properly:

    1. Check browser console for detailed logs
    2. Ensure project has uploaded files in the knowledge panel
    3. Try refreshing the page and running again
    4. Disable other extensions that might interfere with modals

    Support

    For issues or feature requests, please check the console logs first and include them in your report.

  • v2.0 2025-07-02

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址