Logo

懒猫文件助手

LazyCat File Helper

在任何网站使用懒猫微服云盘选择文件
Pick files from LazyCat cloud on any website

功能特点

📁

云端文件选择

直接从懒猫云盘选择文件

🌐

全网站支持

任何网站的文件上传框都能使用

📤

本地文件上传

同时支持上传文件到云盘

🔒

安全传输

数据经过加密安全传输

🔧 首次设置

⚠️ 重要提示

使用前必须完成以下设置,否则无法正常使用!

1

配置微服名称

点击扩展图标,选择「设置」,填入你的微服名称(例如:mybox)。这是访问你的懒猫微服的唯一标识。

2

登录懒猫微服

在浏览器中访问你的微服地址(例如:https://mybox.heiyu.space),正常登录一次。扩展会自动获取登录凭证。

3

验证设置

再次点击扩展图标,确认「登录状态」显示为绿色的「已登录」。如果显示「未登录」,请重新在微服页面登录。

📖 使用方法

1

触发文件选择器

在任意网站遇到需要上传文件的地方,点击文件上传按钮。扩展会自动拦截并弹出选择窗口。

2

选择文件来源

在弹出窗口中,你可以选择「本地文件」使用系统默认选择器,或选择「云盘文件」从懒猫云盘选择。

3

完成选择

从云盘选择文件后,扩展会自动下载文件并传递给网站,就像你直接选择了本地文件一样。

🔬 技术原理

本扩展通过以下方式实现云盘文件选择功能:

网页点击上传
扩展拦截事件
显示选择窗口
调用云盘 API
下载并传递文件
  • 使用 Content Script 监听页面文件选择事件
  • 通过 Background Service Worker 管理认证和下载
  • 利用懒猫微服的 Files API 实现文件浏览和下载
  • 大文件采用分块传输,避免内存溢出
  • Cookie 自动同步,无需重复登录

Features

📁

Cloud File Picker

Select files directly from LazyCat cloud

🌐

Universal Support

Works on any website's file input

📤

Local Upload

Also supports uploading to cloud

🔒

Secure Transfer

Data is encrypted during transfer

🔧 First-Time Setup

⚠️ Important

You must complete these steps before using the extension!

1

Configure Box Name

Click the extension icon, select "Settings", and enter your box name (e.g., mybox). This is the unique identifier for your LazyCat microservice.

2

Login to LazyCat

Visit your microservice URL in the browser (e.g., https://mybox.heiyu.space) and log in once. The extension will automatically obtain login credentials.

3

Verify Setup

Click the extension icon again and confirm that "Login Status" shows green "Logged in". If it shows "Not logged in", please log in again on the microservice page.

📖 How to Use

1

Trigger File Picker

On any website, when you need to upload a file, click the file upload button. The extension will automatically intercept and show a selection window.

2

Choose File Source

In the popup window, you can choose "Local Files" to use the system picker, or "Cloud Files" to select from LazyCat cloud.

3

Complete Selection

After selecting files from cloud, the extension will automatically download and pass them to the website, just as if you selected local files.

🔬 Technical Details

This extension enables cloud file selection through the following mechanism:

Page Upload Click
Extension Intercepts
Show Picker UI
Call Cloud API
Download & Pass File
  • Uses Content Script to listen for file selection events
  • Background Service Worker manages auth and downloads
  • Leverages LazyCat Files API for browsing and downloading
  • Large files use chunked transfer to avoid memory overflow
  • Cookies sync automatically, no repeated login needed