Greasy Fork

来自缓存

Greasy Fork is available in English.

Form Save&Refill(Document Uploader) / 通用表单助手 (大文件加强版)

利用 IndexedDB 支持大文件(图片/PDF)的保存与恢复。支持导出包含文件的 JSON 备份。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
LantoZheng
日安装量
0
总安装量
0
评分
0 0 0
版本
4.1
创建于
2025-12-11
更新于
2025-12-11
大小
12.0 KB
许可证
MIT
适用于
所有网站

Universal Form Saver (Large File Support)

通用表单助手 (大文件加强版)

📖 Introduction / 简介

English: A powerful tool designed to save your progress on any web form. Unlike simple autofill extensions, this script can handle complex forms including large file uploads (images, PDFs). It uses IndexedDB to break the storage limit of standard browsers, allowing you to save, restore, and even export your form data (with files) as a JSON backup. Perfect for long applications, government forms, or unstable internet connections.

中文: 一款功能强大的网页表单数据保存工具。不同于普通的自动填充插件,本脚本专为复杂表单设计,支持保存包含图片、PDF在内的大型文件。它利用 IndexedDB 技术突破了浏览器存储限制,允许您保存、恢复,甚至将包含文件的表单数据导出为 JSON 备份。非常适合填写长申请表、政务平台表单或在网络不稳定的环境下使用。


🚀 Key Features / 核心功能

1. 📂 Large File Support (IndexedDB)

  • EN: Supports saving file inputs (up to 50MB per file) directly in your browser.
  • CN: 支持直接在浏览器中保存上传的文件(单文件最大支持 50MB)。

2. 💾 Robust Data Persistence

  • EN: Uses IndexedDB instead of localStorage. Your data is safe even if it exceeds 5MB.
  • CN: 使用 IndexedDB 替代传统的 localStorage。即使数据量超过 5MB 也能安全存储。

3. 📦 Portable Backups (JSON Export)

  • EN: Export your entire form progress, including the uploaded files, into a single JSON file. You can send this file to another computer and restore the entire form instantly.
  • CN: 将您的填写进度(包含已上传的文件实体)打包导出为单个 JSON 文件。您可以将此文件发送到另一台电脑,瞬间恢复所有表单内容。

4. ⚡️ Smart Restoration

  • EN: Automatically triggers input/change events to ensure compatibility with modern frameworks like React, Vue, and Angular.
  • CN: 自动触发 input/change 事件,完美兼容 React, Vue, Angular 等现代前端框架构建的网页。

5. 🔒 Privacy Focused

  • EN: All data is stored locally in your browser. No data is sent to any external server.
  • CN: 所有数据仅存储在您的本地浏览器中,绝不会发送到任何外部服务器。

🛠 How to Use / 使用方法

Step 1: Install / 安装

  • EN: Install a userscript manager like Tampermonkey or Violentmonkey, then install this script.
  • CN: 安装脚本管理器(如 Tampermonkey 油猴 或 Violentmonkey 暴力猴),然后安装本脚本。

Step 2: Save Data / 保存数据

  • EN: Fill out your form (including file uploads). Click the Tampermonkey icon extension, and select "💾 Save Form (Large File Support)".
  • CN: 填写表单(包括上传文件)。点击浏览器右上角的油猴图标,选择 “💾 保存表单 (支持大文件)”

Step 3: Restore Data / 恢复数据

  • EN: Refresh the page or visit the form later. Click the menu and select "♻️ Restore Form".
  • CN: 刷新页面或稍后重新访问该表单。点击菜单选择 “♻️ 恢复表单”

Step 4: Export & Import / 导出与导入

  • EN: Use "⬇️ Export Backup" to download a .json file containing all your text and files. Use "📂 Import Backup" on any computer to restore it.
  • CN: 使用 “⬇️ 导出备份” 下载包含所有文字和文件的 .json 文件。在任何电脑上使用 “📂 导入备份” 即可恢复。

⚠️ Notes / 注意事项

  1. File Size Limit / 文件大小限制:

    • EN: To prevent browser crashes during JSON processing, the default limit per file is 50MB. Files larger than this will only save the filename as a reminder.
    • CN: 为防止 JSON 处理时导致浏览器崩溃,默认单文件限制为 50MB。超过此大小的文件将只保存文件名作为提示。
  2. Security / 安全性:

    • EN: Since the exported JSON contains your files in Base64 format, the file size might be roughly 30% larger than the original. Please keep your backup files secure.
    • CN: 由于导出的 JSON 包含 Base64 格式的文件内容,文件体积通常比原始文件大 30% 左右。请妥善保管您的备份文件。

📝 Changelog / 更新日志

v4.0

  • [New] Migrated storage engine to IndexedDB for better performance and capacity.
  • [New] Added support for saving/restoring large files (Images, PDFs, Zips).
  • [New] Full Offline Export: Exported JSON now includes file binaries.
  • [Fix] Improved compatibility with React/Vue event handling.

v4.0

  • [新增] 存储引擎迁移至 IndexedDB,大幅提升容量和性能。
  • [新增] 支持保存和恢复大文件(图片、PDF、压缩包等)。
  • [新增] 完全离线导出:导出的 JSON 文件现在包含文件实体数据。
  • [修复] 优化了对 React/Vue 事件处理的兼容性。