scriptcat icon indicating copy to clipboard operation
scriptcat copied to clipboard

[Feature] CAT_fileStorage upgrade to OPFS storage

Open cyfung1031 opened this issue 1 month ago • 2 comments

Feature Description

Please clearly describe the feature you want:

Like GM_setValue, GM_getValue...

Store Files in Extension_OPFS/<script_uuid>

Use Case

In what situations is this feature needed? (e.g., when processing specific websites, improving operational efficiency, etc.)

Download Something. Can load in UserScript directly instantly without Network Download.

Additional Information

(Optional) Supplementary screenshots, sample code, or other reference information

cyfung1031 avatar Nov 03 '25 13:11 cyfung1031

叫CAT_ 吧 哈哈,另外现在有一个类似的:https://docs.scriptcat.org/docs/dev/cat-api/#cat_filestorage 感觉可以直接增加一个OPFS的选项(或者默认OPFS)?

CodFrm avatar Nov 03 '25 14:11 CodFrm

叫CAT_ 吧 哈哈,另外现在有一个类似的:https://docs.scriptcat.org/docs/dev/cat-api/#cat_filestorage 感觉可以直接增加一个OPFS的选项(或者默认OPFS)?

原来如此 感觉像资料库升级一样,把旧格式都搬到OPFS吧

cyfung1031 avatar Nov 03 '25 14:11 cyfung1031